Class: H2o::TextNode

Inherits:
Node show all
Defined in:
lib/h2o/nodes.rb

Instance Method Summary collapse

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