Class: Kind::Object::Instance
- Inherits:
-
Object
- Object
- Kind::Object::Instance
- Includes:
- Kind::Object
- Defined in:
- lib/kind/objects/object.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(kind, opt) ⇒ Instance
constructor
A new instance of Instance.
Methods included from Kind::Object
Methods included from UnionType::Buildable
Methods included from Maybe::Buildable
Methods included from BasicObject
#[], #or, #or_nil, #or_null, #or_undefined, #value, #value?
Constructor Details
#initialize(kind, opt) ⇒ Instance
Returns a new instance of Instance.
34 35 36 37 38 39 |
# File 'lib/kind/objects/object.rb', line 34 def initialize(kind, opt) name = ResolveKindName.(kind, opt) @name = STRICT.kind_of(::String, name) @kind = KIND.respond_to!(:===, kind) end |