Class: Ecrire::Markdown::Node
- Inherits:
-
Object
- Object
- Ecrire::Markdown::Node
- Defined in:
- lib/ecrire/markdown/node.rb
Direct Known Subclasses
Ecrire::Markdown::Nodes::CodeBlock, Ecrire::Markdown::Nodes::Heading, Ecrire::Markdown::Nodes::Image, Ecrire::Markdown::Nodes::OrderedList, Ecrire::Markdown::Nodes::UnorderedList
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content) ⇒ Node
constructor
A new instance of Node.
- #to_s ⇒ Object
Constructor Details
#initialize(content) ⇒ Node
Returns a new instance of Node.
13 14 15 |
# File 'lib/ecrire/markdown/node.rb', line 13 def initialize(content) @content = content || String.new end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
11 12 13 |
# File 'lib/ecrire/markdown/node.rb', line 11 def content @content end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/ecrire/markdown/node.rb', line 17 def to_s @content end |