Class: Schema::Type::GroupAnyPointer::GroupUnconstrained::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



712
713
714
715
716
717
718
719
720
# File 'lib/capnp/generator/schema.capnp.rb', line 712

def self.from_integer(value)
  case value
  when 0 then AnyKind
  when 1 then Struct
  when 2 then List
  when 3 then Capability
  else raise "Unknown Which value: #{value}"
  end
end