Class: RBNF::Def
Overview
Node that encapsulates a defined (with RBNF::def or ::define) form.
Constant Summary
Constants included from RBNF
Instance Attribute Summary
Attributes inherited from Binary
Instance Method Summary collapse
Methods inherited from Binary
Methods included from RBNF
#=~, [], #alt, #cat, #comps, def, define, dememoize, #except, #group, method_missing, #opt, #rep, #rep_n
Constructor Details
This class inherits a constructor from RBNF::Binary
Instance Method Details
#match(s) ⇒ Object
40 41 42 |
# File 'lib/rbnf/nodes.rb', line 40 def match(s) b[s] end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/rbnf/nodes.rb', line 37 def to_s "#{a}" end |