Class: Playmo::Silent

Inherits:
Object
  • Object
show all
Defined in:
lib/playmo/silent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



3
4
5
# File 'lib/playmo/silent.rb', line 3

def block
  @block
end

#callerObject

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