Top Level Namespace
Defined Under Namespace
Modules: StudioGame
Instance Method Summary collapse
Instance Method Details
#fmt_time ⇒ Object
22 23 24 25 |
# File 'lib/studio_game/studio_game_initial.rb', line 22 def fmt_time current_time = Time.new formatted_time = current_time.strftime("%H:%M:%S") end |
#say_hello(name = "generic", health = 100) ⇒ Object
27 28 29 |
# File 'lib/studio_game/studio_game_initial.rb', line 27 def say_hello(name="generic", health = 100) "I'm #{name.capitalize} with a health of #{health} as of #{fmt_time}." end |