Class: MDOM::Code
- Inherits:
-
InlineNode
- Object
- Node
- InlineNode
- MDOM::Code
- 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) ⇒ Code
constructor
A new instance of Code.
- #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.
159 160 161 |
# File 'lib/mdom/nodes.rb', line 159 def value @value end |
Instance Method Details
#to_s ⇒ Object
161 162 163 |
# File 'lib/mdom/nodes.rb', line 161 def to_s @value end |