Class: Schema::Brand::Binding::Which

Inherits:
T::Enum
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/capnp/generator/schema.capnp.rb

Class Method Summary collapse

Class Method Details

.from_integer(value) ⇒ Object



968
969
970
971
972
973
974
# File 'lib/capnp/generator/schema.capnp.rb', line 968

def self.from_integer(value)
  case value
  when 0 then Unbound
  when 1 then Type
  else raise "Unknown Which value: #{value}"
  end
end