Class: Schema::Type::GroupAnyPointer::Which
- Inherits:
-
T::Enum
- Object
- T::Enum
- Schema::Type::GroupAnyPointer::Which
- Extended by:
- T::Sig
- Defined in:
- lib/capnp/generator/schema.capnp.rb
Class Method Summary collapse
Class Method Details
.from_integer(value) ⇒ Object
783 784 785 786 787 788 789 790 |
# File 'lib/capnp/generator/schema.capnp.rb', line 783 def self.from_integer(value) case value when 0 then Unconstrained when 1 then Parameter when 2 then ImplicitMethodParameter else raise "Unknown Which value: #{value}" end end |