Class: H2o::Node

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

Direct Known Subclasses

CommentNode, Nodelist, Tags::Tag, TextNode, VariableNode

Instance Method Summary collapse

Constructor Details

#initialize(parser, position = 0) ⇒ Node

Returns a new instance of Node.



3
4
5
# File 'lib/h2o/nodes.rb', line 3

def initialize(parser, position = 0)
  raise "Subclass should implement initialize method"
end

Instance Method Details

#render(context, stream) ⇒ Object



7
8
9
# File 'lib/h2o/nodes.rb', line 7

def render(context, stream)
  raise "Subclass should implement method method"
end