Class: H2o::TextNode
Instance Method Summary collapse
-
#initialize(content) ⇒ TextNode
constructor
A new instance of TextNode.
- #render(context, stream) ⇒ Object
Constructor Details
#initialize(content) ⇒ TextNode
Returns a new instance of TextNode.
43 44 45 |
# File 'lib/h2o/nodes.rb', line 43 def initialize(content) @content = content end |
Instance Method Details
#render(context, stream) ⇒ Object
47 48 49 |
# File 'lib/h2o/nodes.rb', line 47 def render(context, stream) stream << @content end |