Class: Rsense::Server::Command::SpecialMeth
- Inherits:
-
Java::org.cx4a.rsense.typing.runtime::SpecialMethod
- Object
- Java::org.cx4a.rsense.typing.runtime::SpecialMethod
- Rsense::Server::Command::SpecialMeth
- Defined in:
- lib/rsense/server/command/special_meth.rb
Instance Attribute Summary collapse
-
#call_block ⇒ Object
Returns the value of attribute call_block.
Instance Method Summary collapse
- #call(*args) ⇒ Object
-
#initialize(&code) ⇒ SpecialMeth
constructor
A new instance of SpecialMeth.
Constructor Details
#initialize(&code) ⇒ SpecialMeth
Returns a new instance of SpecialMeth.
7 8 9 |
# File 'lib/rsense/server/command/special_meth.rb', line 7 def initialize(&code) @call_block = code end |
Instance Attribute Details
#call_block ⇒ Object
Returns the value of attribute call_block.
5 6 7 |
# File 'lib/rsense/server/command/special_meth.rb', line 5 def call_block @call_block end |
Instance Method Details
#call(*args) ⇒ Object
11 12 13 |
# File 'lib/rsense/server/command/special_meth.rb', line 11 def call(*args) @call_block.call(*args) end |