Class: ParsingNesting::Tree::Phrase
- 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) ⇒ Phrase
constructor
A new instance of Phrase.
- #negate ⇒ Object
- #to_embed ⇒ Object
Methods inherited from Node
Constructor Details
#initialize(string) ⇒ Phrase
Returns a new instance of Phrase.
417 418 419 |
# File 'lib/parsing_nesting/tree.rb', line 417 def initialize(string) self.value = string end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
415 416 417 |
# File 'lib/parsing_nesting/tree.rb', line 415 def value @value end |
Instance Method Details
#can_embed? ⇒ Boolean
421 422 423 |
# File 'lib/parsing_nesting/tree.rb', line 421 def true end |
#negate ⇒ Object
429 430 431 |
# File 'lib/parsing_nesting/tree.rb', line 429 def negate ExcludedClause.new(self) end |
#to_embed ⇒ Object
425 426 427 |
# File 'lib/parsing_nesting/tree.rb', line 425 def '"' + value + '"' end |