Class: MarkdownFormatter::ASTNode::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_formatter/nodes/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (readonly)

Returns the value of attribute node.



4
5
6
# File 'lib/markdown_formatter/nodes/base.rb', line 4

def node
  @node
end