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?, #optionalize, #pfx, #qmark, #quote, #root?, #wrap
Constructor Details
#initialize(engine, c) ⇒ Leaf
Returns a new instance of Leaf.
766 767 768 769 |
# File 'lib/list_matcher.rb', line 766 def initialize(engine, c) super(engine, nil) @c = c end |
Instance Attribute Details
#c ⇒ Object (readonly)
Returns the value of attribute c.
764 765 766 |
# File 'lib/list_matcher.rb', line 764 def c @c end |
Instance Method Details
#atomic? ⇒ Boolean
771 772 773 |
# File 'lib/list_matcher.rb', line 771 def atomic? true end |
#convert ⇒ Object
775 776 777 778 |
# File 'lib/list_matcher.rb', line 775 def convert rx = quote c finalize rx end |