Class: RGen::Util::PatternMatcher::Lazy

Inherits:
MetamodelBuilder::MMGeneric show all
Defined in:
lib/rgen/util/pattern_matcher.rb

Instance Method Summary collapse

Methods inherited from MetamodelBuilder::MMGeneric

#_set_container

Constructor Details

#initialize(&block) ⇒ Lazy

Returns a new instance of Lazy.



63
64
65
# File 'lib/rgen/util/pattern_matcher.rb', line 63

def initialize(&block)
  @block = block
end

Instance Method Details

#_evalObject



66
67
68
# File 'lib/rgen/util/pattern_matcher.rb', line 66

def _eval
  @block.call
end