Class: ItegrationVerbAgent

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/exlib/itegration_verb.rb

Overview

ItegrationVerb 代理

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(itgt) ⇒ ItegrationVerbAgent

Returns a new instance of ItegrationVerbAgent.



254
255
256
# File 'lib/tdl/exlib/itegration_verb.rb', line 254

def initialize(itgt)
    @itgt = itgt
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_id, *arguments, &block) ⇒ Object



258
259
260
261
262
263
264
265
# File 'lib/tdl/exlib/itegration_verb.rb', line 258

def method_missing(method_id,*arguments,&block)
    # 是否也相应 active_#{name}_proc_run
    if @itgt.respond_to? "active_#{method_id}_proc_run"
        @itgt.send("active_#{method_id}_proc_run",*arguments,&block)
    else
        @itgt.send(method_id,*arguments,&block)
    end
end

Instance Attribute Details

#itgtObject (readonly)

Returns the value of attribute itgt.



253
254
255
# File 'lib/tdl/exlib/itegration_verb.rb', line 253

def itgt
  @itgt
end