class Tataru::Representations::HashRepresentation

representing hashes

Public Class Methods

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

Public Instance Methods

dependencies() click to toggle source
# File lib/tataru/representations/hash_representation.rb, line 13
def dependencies
  @dependencies ||= @value.flat_map do |_key, rep|
    rep.dependencies
  end
end