Change Entry to a private struct

This commit is contained in:
Michael Miller 2018-10-22 11:10:54 -06:00
parent f8fa3e706d
commit 152ad5a5bf

View file

@ -2,8 +2,6 @@ require "./value_wrapper"
module Spectator::Internals
struct SampleValues
private record Entry, name : String, wrapper : ValueWrapper
def self.empty
new({} of Symbol => Entry)
end
@ -25,5 +23,13 @@ module Spectator::Internals
def get_value(id : Symbol, value_type : T.class) : T forall T
get_wrapper(id).as(TypedValueWrapper(T)).value
end
private struct Entry
getter name : String
getter wrapper : ValueWrapper
def initialize(@name, @wrapper)
end
end
end
end