Class: ParsingNesting::Tree::Term
- Defined in:
- lib/parsing_nesting/tree.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #can_embed? ⇒ Boolean
-
#initialize(string) ⇒ Term
constructor
A new instance of Term.
- #negate ⇒ Object
- #to_embed ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(string) ⇒ Term
Returns a new instance of Term.
427 428 429 |
# File 'lib/parsing_nesting/tree.rb', line 427 def initialize(string) self.value = string end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
425 426 427 |
# File 'lib/parsing_nesting/tree.rb', line 425 def value @value end |
Instance Method Details
#can_embed? ⇒ Boolean
431 432 433 |
# File 'lib/parsing_nesting/tree.rb', line 431 def true end |
#negate ⇒ Object
439 440 441 |
# File 'lib/parsing_nesting/tree.rb', line 439 def negate ExcludedClause.new(self) end |
#to_embed ⇒ Object
435 436 437 |
# File 'lib/parsing_nesting/tree.rb', line 435 def value end |