Class: ProjectSimulator::SayAction
- Inherits:
-
Object
- Object
- ProjectSimulator::SayAction
- Defined in:
- lib/projectsimulator.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(s) ⇒ SayAction
constructor
A new instance of SayAction.
Constructor Details
#initialize(s) ⇒ SayAction
Returns a new instance of SayAction.
338 339 340 |
# File 'lib/projectsimulator.rb', line 338 def initialize(s) @s = s end |
Instance Method Details
#call ⇒ Object
342 343 344 |
# File 'lib/projectsimulator.rb', line 342 def call() "say: %s" % @s end |