Sha256: a76a49d5591522cfb02a2f3d35044ff1dffd42b2b31f2ffeb89192a07e94fe67
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
module Treetop class NodeInstantiatingParsingExpression < ParsingExpression attr_reader :node_class def initialize @node_class = Class.new(node_superclass) end def node_class_eval(string = nil, &block) node_class.class_eval(string) if string node_class.class_eval(&block) if block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treetop-0.1.0 | lib/treetop/grammar/parsing_expressions/node_instantiating_parsing_expression.rb |