Class/Module Index [+]

Quicksearch

RGen::Util::PatternMatcher::Proxy

Attributes

_target[R]

Public Class Methods

new(target) click to toggle source
# File lib/rgen/util/pattern_matcher.rb, line 75
def initialize(target)
  @_target = target
end

Public Instance Methods

method_missing(m, *args) click to toggle source
# File lib/rgen/util/pattern_matcher.rb, line 78
def method_missing(m, *args)
  result = @_target.send(m, *args)
  if result.is_a?(Array)
    result.collect do |e|
      if e.is_a?(RGen::MetamodelBuilder::MMBase)
        Proxy.new(e)
      else
        e
      end
    end
  else
    if result.is_a?(RGen::MetamodelBuilder::MMBase)
      Proxy.new(result)
    else
      result 
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.