Class: Schema::Field::GroupOrdinal::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



400
401
402
403
404
405
406
# File 'lib/capnp/generator/schema.capnp.rb', line 400

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