Class: RGen::Util::PatternMatcher::Lazy
- Inherits:
-
MetamodelBuilder::MMGeneric
- Object
- MetamodelBuilder::MMGeneric
- RGen::Util::PatternMatcher::Lazy
- Defined in:
- lib/rgen/util/pattern_matcher.rb
Instance Method Summary collapse
- #_eval ⇒ Object
-
#initialize(&block) ⇒ Lazy
constructor
A new instance of Lazy.
Methods inherited from MetamodelBuilder::MMGeneric
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
#_eval ⇒ Object
66 67 68 |
# File 'lib/rgen/util/pattern_matcher.rb', line 66 def _eval @block.call end |