Class: MDOM::Text
- Inherits:
-
InlineNode
- Object
- Node
- InlineNode
- MDOM::Text
- Defined in:
- lib/mdom/nodes.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
#attributes, #children, #parent, #type
Instance Method Summary collapse
-
#initialize(value) ⇒ Text
constructor
A new instance of Text.
- #to_s ⇒ Object
Methods inherited from Node
#[], #ancestors, #append, #children?, #depth, #each_child, #empty?, #find, #find_all, #insert_after, #insert_before, #inspect, #plain_text, #pretty_print, #remove, #replace, #root, #text?, #to_markdown, #walk
Constructor Details
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
134 135 136 |
# File 'lib/mdom/nodes.rb', line 134 def value @value end |
Instance Method Details
#to_s ⇒ Object
136 137 138 |
# File 'lib/mdom/nodes.rb', line 136 def to_s @value end |