background preloader

Ruby Tutorial - Learn Ruby

Ruby Tutorial - Learn Ruby

Ruby Hacking Guide Ruby tutorial Home This is a Ruby tutorial. In this tutorial you will learn the Ruby language. The tutorial is suitable for beginners. Table of contents Ruby Ruby is a dynamic, reflective, general-purpose object-oriented programming language. Related tutorials ZetCode has other programming language tutorials: Python tutorial, PHP tutorial, Tcl tutorial, Visual Basic tutorial, and C# tutorial. RubyMotion Terminal-based workflow Create a project. Run your app in the simulator. Deploy on your device. Create an App Store package. Everything is just one command away. RubyMotion projects are based on Rake. Interactive development RubyMotion comes with an interactive console that lets you navigate and introspect the iOS and OS X API jungle with ease, from the comfort of your terminal. The console is connected to your application running in the simulator. Keep your editor Thanks to its command-line infrastructure and its ctags support, RubyMotion can easily be integrated in almost any text editor. Do you rock with Vim, Emacs or TextMate? Embrace and extend RubyMotion comes with its own flavor of gems that can be used to extend projects or apps. Want a DSL to deal with CoreData? Testing RubyMotion comes with a behavior-driven testing framework, extended for iOS and OS X, and integrated into every new project. Functional and integration tests are covered. Debugging Your app crashed? Unified runtime

Objects on Rails Learn Web Development with the Ruby on Rails Tutorial My Book Scanner See Android Book Scanner for the successor to this never completed project. Introduction A Saturday afternoon in January was aproaching the time of twilight, and that vast tract of unenclosed wild known as the Internet would soon suck me into the geekest project yet in my collection of geeky projects. (See for instance the Mark II Cell Phone Ring Detector.) This was the last weekend in January of 2011 and I stumbled across the DIY Book Scanning web site. It was like finding the Holy Grail! Eagerly perusing the forums, I soon started making plans for my own scanner and discovering just how disorganized the forums are :-). Cameras The first thing I'd need would be a pair of cameras. Camera Trigger Before building any physical infrastructure, I figured I should make sure the cameras could be triggered correctly. Once I got everything wired up, it seems like all three switches work fine. Now all I need is to test with the cameras. Base Platform Platen Interlude With Cameras More Platen Lights Wiring

The Bastards Book of Ruby Ruby in Twenty Minutes Introduction This is a small Ruby tutorial that should take no more than 20 minutes to complete. It makes the assumption that you already have Ruby installed. Interactive Ruby Ruby comes with a program that will show the results of any Ruby statements you feed it. Open up IRB (which stands for Interactive Ruby). If you’re using macOS open up Terminal and type irb, then hit enter. irb(main):001:0> Ok, so it’s open. Type this: "Hello World" irb(main):001:0> "Hello World" => "Hello World" Ruby Obeyed You! What just happened? irb(main):002:0> puts "Hello World" Hello World => nil puts is the basic command to print something out in Ruby. Your Free Calculator is Here Already, we have enough to use IRB as a basic calculator: irb(main):003:0> 3+2 => 5 Three plus two. irb(main):004:0> 3*2 => 6 Next, let’s try three squared: irb(main):005:0> 3**2 => 9 In Ruby ** is the way you say “to the power of”. irb(main):006:0> Math.sqrt(9) => 3.0 Ok, wait, what was that last one? Modules Group Code by Topic

OkayFreedom VPN. A simple VPN service enabling private, uncensored web surfing. Ruby Programming Ruby is an interpreted, object-oriented programming language. Its creator, Yukihiro Matsumoto, a.k.a “Matz,” released it to the public in 1995. Its history is covered here. The book is currently broken down into several sections and is intended to be read sequentially. Table of Contents[edit] Getting started[edit] Overview Installing Ruby Ruby editors Notation conventions Interactive Ruby Mailing List FAQ Basic Ruby[edit] Hello world Strings Alternate quotes Here documents Encoding Introduction to objects Ruby basics Data types — numbers, strings, hashes and arrays Writing methods Classes and objects Exceptions Ruby Semantic reference[edit] See also some rdoc documentation on the various keywords. Built in Classes[edit] This is a list of classes that are available to you by default in Ruby. Available Standard Library Modules[edit] These are parts of Ruby that you have available (in the standard library, or via installation as a gem). Other Libraries[edit] Database Interface Modules GUI Libraries[edit] RubyDoc

Ruby Tutorial Ruby is a scripting language designed by Yukihiro Matsumoto, also known as Matz. It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. This tutorial gives a complete understanding on Ruby. This reference has been prepared for the beginners to help them understand the basic to advanced concepts related to Ruby Scripting languages. Before you start doing practice with various types of examples given in this reference, I'm making an assumption that you are already aware about what is a computer program and what is a computer programming language. For most of the examples given in this tutorial, you will find Try it option, so just make use of it and enjoy your learning. Try following example using Try it option available at the top right corner of the below sample code box: #! 1 - Ruby Quick Reference Guide A quick Ruby reference guide for Ruby Programmers. Ruby Quick Reference Guide 2 - Ruby Built-In Useful Functions Ruby Built-In Useful Functions

Learn Web Development with the Ruby on Rails Tutorial Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Michael Hartl is the author of the Ruby on Rails Tutorial, the leading introduction to web development with Ruby on Rails. Copyright and license Welcome to the Ruby on Rails Tutorial.

Ruby-Doc.org: Documenting the Ruby Language

Related: