Skip to content

Instantly share code, notes, and snippets.

@yangsu
Created January 28, 2013 02:53
Show Gist options
  • Save yangsu/4652670 to your computer and use it in GitHub Desktop.
Save yangsu/4652670 to your computer and use it in GitHub Desktop.
Ruby Code Example
properties = ['object oriented', 'duck typed', 'productive', 'fun']
# => ["object oriented", "duck typed", "productive", "fun"]
properties.each {|property| puts "Ruby is #{property}."}
Ruby is object oriented.
Ruby is duck typed.
Ruby is productive.
Ruby is fun.
# => ["object oriented", "duck typed", "productive", "fun"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment