Sha256: 4efc1daa0d9c91cbb0e39387e91791ec68597c275dab11766cd185494aa97a2f
Contents?: true
Size: 589 Bytes
Versions: 3
Compression:
Stored size: 589 Bytes
Contents
require_relative "./node" module Dentaku module AST class Array < Node def self.arity end def self.min_param_count 0 end def self.max_param_count Float::INFINITY end def self.peek(*) end def initialize(*elements) @elements = *elements end def value(context = {}) @elements.map { |el| el.value(context) } end def dependencies(context = {}) @elements.flat_map { |el| el.dependencies(context) } end def type nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dentaku-3.4.2 | lib/dentaku/ast/array.rb |
dentaku-3.4.1 | lib/dentaku/ast/array.rb |
dentaku-3.4.0 | lib/dentaku/ast/array.rb |