Class: MarkdownFormatter::ASTNode::Base
- Inherits:
-
Object
- Object
- MarkdownFormatter::ASTNode::Base
- Defined in:
- lib/markdown_formatter/nodes/base.rb
Direct Known Subclasses
Blank, BlockQuote, CodeBlock, CodeSpan, ContainerBlock, Emphasis, Entity, Footnote, HTMLElement, Header, Image, Inline, LeafBlock, Link, List, ListItem, Paragraph, SmartQuote, Strong, ThematicBreak, TypographicSym
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(node) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/markdown_formatter/nodes/base.rb', line 6 def initialize(node) @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/markdown_formatter/nodes/base.rb', line 4 def node @node end |