Class: RBNF::Cat
Overview
Catenation node
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
50 51 52 |
# File 'lib/rbnf/nodes.rb', line 50 def match(s) a.comps(s).any? {|c| b=~c} end |
#to_s ⇒ Object
47 48 49 |
# File 'lib/rbnf/nodes.rb', line 47 def to_s "#{a} , #{b}" end |