Class: RKelly::Runtime::RubyFunction
- Inherits:
 - 
      Object
      
        
- Object
 - RKelly::Runtime::RubyFunction
 
 
- Defined in:
 - lib/rkelly/runtime/ruby_function.rb
 
Instance Method Summary collapse
- #call(chain, *args) ⇒ Object
 - 
  
    
      #initialize(&block)  ⇒ RubyFunction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RubyFunction.
 
Constructor Details
#initialize(&block) ⇒ RubyFunction
Returns a new instance of RubyFunction.
      4 5 6  | 
    
      # File 'lib/rkelly/runtime/ruby_function.rb', line 4 def initialize(&block) @code = block end  | 
  
Instance Method Details
#call(chain, *args) ⇒ Object
      8 9 10  | 
    
      # File 'lib/rkelly/runtime/ruby_function.rb', line 8 def call(chain, *args) @code.call(*args) end  |