class Tataru::Representations::ArrayRepresentation

representing arrays

Public Class Methods

new(value) click to toggle source
# File lib/tataru/representations/array_representation.rb, line 7
def initialize(value)
  @value = value.map do |thing|
    Resolver.new(thing).representation
  end.to_a
end

Public Instance Methods

dependencies() click to toggle source
# File lib/tataru/representations/array_representation.rb, line 13
def dependencies
  @dependencies ||= @value.flat_map(&:dependencies)
end