Ruby! – Brain.insert Ruby::Knowledge.new – Ruby.what_is_it?



Ruby! – Brain.insert Ruby::Knowledge.new – Ruby.what_is_it?

0 1


ruby-workshop-presentation

http://grandcircus.co/workshops/ruby-programming

On Github JangoSteve / ruby-workshop-presentation

Ruby!

Brain.insert Ruby::Knowledge.new

Day 1

Steve Schwartz / @jangosteve

Workshop Info Code Repository Hosted by: Grand Circus In association with: Alfa Jango

Ruby.what_is_it?

"I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python. That's why I decided to design my own language." --Yukihiro Matsumoto

Ruby.where?

Installation Lab

Homebrew RVM

irb

The Interactive Ruby Shell

Organizing your one-shot program

Objects and stuff

Writing some Ruby

Variables and Assignments, Symbols, Control Structures, Comparisons, Strings, Logging and Debugging

gem install rdoc-data

# Regenerate system docs
rdoc-data --install

# Regenerate all gem docs
gem rdoc --all --overwrite

# Regenerate specific gem doc with specific version
gem rdoc gemname -v 1.2.3 --overwrite
Or...
rvm docs generate
credit to StackOverflow

The Ruby Unit

Built-in things

Built-in object types

String, Symbol, Fixnum, Float, Boolean (TrueClass, FalseClass), Array, Hash, Time, File, Dir

Organizing larger programs

Structs and stuff

Writing some Ruby

classes, blocks, methods, using code from other places

Object Oriented Ruby, Mixins, and Control

Modules and shared code

Building a program

Ruby Graph

Further Learning

Day.first = :finished

Day.second.proceed →