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.
407 408 409 |
# File 'lib/parsing_nesting/tree.rb', line 407 def initialize(string) self.value = string end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
405 406 407 |
# File 'lib/parsing_nesting/tree.rb', line 405 def value @value end |
Instance Method Details
#can_embed? ⇒ Boolean
411 412 413 |
# File 'lib/parsing_nesting/tree.rb', line 411 def true end |
#negate ⇒ Object
419 420 421 |
# File 'lib/parsing_nesting/tree.rb', line 419 def negate ExcludedClause.new(self) end |
#to_embed ⇒ Object
415 416 417 |
# File 'lib/parsing_nesting/tree.rb', line 415 def '"' + value + '"' end |