Class: Playmo::Silent
- Inherits:
-
Object
- Object
- Playmo::Silent
- Defined in:
- lib/playmo/silent.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#caller ⇒ Object
Returns the value of attribute caller.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(&block) ⇒ Silent
constructor
A new instance of Silent.
- #set_caller(caller) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Silent
Returns a new instance of Silent.
5 6 7 |
# File 'lib/playmo/silent.rb', line 5 def initialize(&block) @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
3 4 5 |
# File 'lib/playmo/silent.rb', line 3 def block @block end |
#caller ⇒ Object
Returns the value of attribute caller.
3 4 5 |
# File 'lib/playmo/silent.rb', line 3 def caller @caller end |
Instance Method Details
#execute! ⇒ Object
13 14 15 |
# File 'lib/playmo/silent.rb', line 13 def execute! block.call end |
#set_caller(caller) ⇒ Object
9 10 11 |
# File 'lib/playmo/silent.rb', line 9 def set_caller(caller) @caller = caller end |