Class: Babl::Nodes::FixedArray
- Inherits:
-
Object
- Object
- Babl::Nodes::FixedArray
- Defined in:
- lib/babl/nodes/fixed_array.rb
Instance Method Summary collapse
Instance Method Details
#dependencies ⇒ Object
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_dependencies ⇒ Object
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 |
#schema ⇒ Object
8 9 10 |
# File 'lib/babl/nodes/fixed_array.rb', line 8 def schema Schema::FixedArray.new(nodes.map(&:schema)) end |