# File lib/ruby-vpi/core/handle.rb, line 288 def method_missing aMeth, *aArgs, &aBlock # cache the result for future accesses, in order # to cut down number of calls to method_missing() eigen_class = (class << self; self; end) if child = vpi_handle_by_name(aMeth.to_s, self) eigen_class.class_eval do define_method aMeth do child end end child else # XXX: using a string because define_method() does # not support a block argument until Ruby 1.9 eigen_class.class_eval %{ def #{aMeth}(*a, &b) access_prop(#{aMeth.inspect}, *a, &b) end }, __FILE__, __LINE__ __send__(aMeth, *aArgs, &aBlock) end end