Class: HerbNonTextNode
- Inherits:
-
Object
- Object
- HerbNonTextNode
- Includes:
- NonTextNode
- Defined in:
- lib/nodes/herb_non_text_node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#text_value ⇒ Object
Returns the value of attribute text_value.
Instance Method Summary collapse
- #can_be_combined? ⇒ Boolean
-
#initialize(text) ⇒ HerbNonTextNode
constructor
A new instance of HerbNonTextNode.
- #node_name ⇒ Object
- #to_s ⇒ Object
Methods included from NonTextNode
#contains_only_whitespace?, #extract_text, #text?, #top_level?, #white_space?
Methods included from BaseNode
#shatter?, #shattered_node_list
Constructor Details
#initialize(text) ⇒ HerbNonTextNode
Returns a new instance of HerbNonTextNode.
4 5 6 |
# File 'lib/nodes/herb_non_text_node.rb', line 4 def initialize( text ) @text_value = text end |
Instance Attribute Details
#text_value ⇒ Object
Returns the value of attribute text_value.
3 4 5 |
# File 'lib/nodes/herb_non_text_node.rb', line 3 def text_value @text_value end |
Instance Method Details
#can_be_combined? ⇒ Boolean
8 9 10 |
# File 'lib/nodes/herb_non_text_node.rb', line 8 def can_be_combined? false end |
#node_name ⇒ Object
12 13 14 |
# File 'lib/nodes/herb_non_text_node.rb', line 12 def node_name "non_text_node" end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/nodes/herb_non_text_node.rb', line 16 def to_s @text_value end |