Class: Kind::Maybe::Typed
- Inherits:
-
Object
- Object
- Kind::Maybe::Typed
- Defined in:
- lib/kind/maybe/typed.rb
Instance Method Summary collapse
-
#initialize(kind) ⇒ Typed
constructor
A new instance of Typed.
- #inspect ⇒ Object
- #new(arg) ⇒ Object (also: #[])
Constructor Details
#initialize(kind) ⇒ Typed
Returns a new instance of Typed.
10 11 12 |
# File 'lib/kind/maybe/typed.rb', line 10 def initialize(kind) @kind = kind end |
Instance Method Details
#inspect ⇒ Object
22 23 24 |
# File 'lib/kind/maybe/typed.rb', line 22 def inspect "Kind::Maybe<#{@kind}>" end |