Method: Val::Instance#initialize
- Defined in:
- lib/val.rb
#initialize(type, value) ⇒ Instance
Returns a new instance of Instance.
124 125 126 127 128 129 130 131 132 |
# File 'lib/val.rb', line 124 def initialize type, value @claims = type.claims.map &[value] @ok = @claims.all? &:ok? set_all_instances_of_type Key::Instance set_all_instances_of_type Message::Instance @type, @value = type, value end |