Class: Rsense::Server::Command::SpecialMeth

Inherits:
Java::org.cx4a.rsense.typing.runtime::SpecialMethod
  • Object
show all
Defined in:
lib/rsense/server/command/special_meth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_blockObject

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