Method: When::TM::Instant#method_missing

Defined in:
lib/when_exe/tmobjects.rb

#method_missing(name, *args, &block) ⇒ Object (private)

Note:

When::TM::Instant で定義されていないメソッドは処理を @position (type: When::TM::Position) に委譲する

その他のメソッド



257
258
259
260
261
262
263
264
265
266
# File 'lib/when_exe/tmobjects.rb', line 257

def method_missing(name, *args, &block)
  self.class.module_eval %Q{
    def #{name}(*args, &block)
      list = args.map {|arg| arg.kind_of?(self.class) ? arg.position : arg}
      @position.send("#{name}", *list, &block)
    end
  } unless When::Parts::MethodCash.escape(name)
  list = args.map {|arg| arg.kind_of?(self.class) ? arg.position : arg}
  @position.send(name, *list, &block)
end