Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [4] pry(main)> greeting("Hon")
- Hon is your name.
- => nil
- [5] pry(main)> funtime = []
- => []
- [6] pry(main)> funtime.push "super"
- => ["super"]
- [7] pry(main)> funtime.push "one", "two", "three"
- => ["super", "one", "two", "three"]
- [8] pry(main)> funtime.each {}
- => ["super", "one", "two", "three"]
- [9] pry(main)>
- [10] pry(main)> funtime.each {|i| puts "This is fun: #{i}!"}
- This is fun: super!
- This is fun: one!
- This is fun: two!
- This is fun: three!
- => ["super", "one", "two", "three"]
- [11] pry(main)> include Math
- => Object
- [12] pry(main)> sqrt 64
- => 8.0
- [13] pry(main)>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement