Class: Bemer::Tree::TextNode
- Defined in:
- lib/bemer/tree/text_node.rb
Instance Attribute Summary
Attributes inherited from BaseNode
#entity, #entity_builder, #tree
Instance Method Summary collapse
-
#initialize(tree, content = nil, &callback) ⇒ TextNode
constructor
A new instance of TextNode.
Methods inherited from BaseNode
#need_replace?, #print, #render
Constructor Details
#initialize(tree, content = nil, &callback) ⇒ TextNode
Returns a new instance of TextNode.
6 7 8 |
# File 'lib/bemer/tree/text_node.rb', line 6 def initialize(tree, content = nil, &callback) super(tree, tag: false, content: content, &callback) end |