Class: Typed::None
- Extended by:
- T::Generic, T::Sig
- Defined in:
- lib/typed/option.rb
Constant Summary collapse
- Payload =
type_member { {fixed: T.noreturn} }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new ⇒ Object
95 96 97 |
# File 'lib/typed/option.rb', line 95 def self.new super end |
Instance Method Details
#none? ⇒ Boolean
105 106 107 |
# File 'lib/typed/option.rb', line 105 def none? true end |
#payload ⇒ Object
110 111 112 |
# File 'lib/typed/option.rb', line 110 def payload raise NoPayloadOnNoneError end |
#payload_or(value) ⇒ Object
120 121 122 |
# File 'lib/typed/option.rb', line 120 def payload_or(value) value end |
#some? ⇒ Boolean
100 101 102 |
# File 'lib/typed/option.rb', line 100 def some? false end |