Method: Val::Message::Instance#initialize
- Defined in:
- lib/val.rb
#initialize(type, value) ⇒ Instance
Returns a new instance of Instance.
261 262 263 264 265 266 |
# File 'lib/val.rb', line 261 def initialize type, value @name = type.name @available = value.respond_to? @name @arrows = type.arrows.map &[value] @ok = @available && @arrows.all?(&:ok?) end |