Class: Twig::Node::Nodes

Inherits:
Base
  • Object
show all
Defined in:
lib/twig/node/nodes.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #lineno, #nodes, #source_context, #tag

Instance Method Summary collapse

Methods inherited from Base

#compile, #empty?, #length, #template_name, #to_s

Constructor Details

#initialize(nodes, lineno = 0) ⇒ Nodes

Returns a new instance of Nodes.

Parameters:

  • nodes (Hash<Node::Base>)
  • lineno (Integer) (defaults to: 0)


8
9
10
# File 'lib/twig/node/nodes.rb', line 8

def initialize(nodes, lineno = 0)
  super(nodes, {}, lineno)
end