Class: Babl::Nodes::FixedArray

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/nodes/fixed_array.rb

Instance Method Summary collapse

Instance Method Details

#dependenciesObject



12
13
14
# File 'lib/babl/nodes/fixed_array.rb', line 12

def dependencies
    nodes.map(&:dependencies).reduce({}) { |a, b| Babl::Utils::Hash.deep_merge(a, b) }
end

#pinned_dependenciesObject



16
17
18
# File 'lib/babl/nodes/fixed_array.rb', line 16

def pinned_dependencies
    nodes.map(&:pinned_dependencies).reduce({}) { |a, b| Babl::Utils::Hash.deep_merge(a, b) }
end

#render(ctx) ⇒ Object



20
21
22
# File 'lib/babl/nodes/fixed_array.rb', line 20

def render(ctx)
    nodes.map { |node| node.render(ctx) }
end

#schemaObject



8
9
10
# File 'lib/babl/nodes/fixed_array.rb', line 8

def schema
    Schema::FixedArray.new(nodes.map(&:schema))
end