Class: List::Matcher::Leaf
Instance Attribute Summary collapse
-
#c ⇒ Object
readonly
Returns the value of attribute c.
Attributes inherited from Node
#engine, #optional, #root, #symbols
Instance Method Summary collapse
- #atomic? ⇒ Boolean
- #convert ⇒ Object
-
#initialize(engine, c) ⇒ Leaf
constructor
A new instance of Leaf.
Methods inherited from Node
#bound, #children, #finalize, #flatten, #optional?, #pfx, #qmark, #quote, #root?, #wrap
Constructor Details
#initialize(engine, c) ⇒ Leaf
Returns a new instance of Leaf.
713 714 715 716 |
# File 'lib/list_matcher.rb', line 713 def initialize(engine, c) super(engine, nil) @c = c end |
Instance Attribute Details
#c ⇒ Object (readonly)
Returns the value of attribute c.
711 712 713 |
# File 'lib/list_matcher.rb', line 711 def c @c end |
Instance Method Details
#atomic? ⇒ Boolean
718 719 720 |
# File 'lib/list_matcher.rb', line 718 def atomic? true end |
#convert ⇒ Object
722 723 724 725 |
# File 'lib/list_matcher.rb', line 722 def convert rx = quote c finalize rx end |