Top Level Namespace
Defined Under Namespace
Modules: GameTurn, StudioGame
Instance Method Summary collapse
Instance Method Details
#conversation ⇒ Object
1 2 3 4 5 |
# File 'lib/studio_game/iterators.rb', line 1 def conversation puts "Hello" yield puts "Goodbye" end |
#n_times(count = 0) ⇒ Object
9 10 11 |
# File 'lib/studio_game/iterators.rb', line 9 def n_times(count=0) 1.upto(count) { |i| yield i } end |