Class: Literal::Result::Emitter
- Inherits:
-
Object
- Object
- Literal::Result::Emitter
- Defined in:
- lib/literal/result.rb
Instance Method Summary collapse
- #failure(error) ⇒ Object
-
#initialize(type:, ball:) ⇒ Emitter
constructor
A new instance of Emitter.
- #success(value) ⇒ Object
Constructor Details
#initialize(type:, ball:) ⇒ Emitter
Returns a new instance of Emitter.
14 15 16 17 18 |
# File 'lib/literal/result.rb', line 14 def initialize(type:, ball:) @type = type @ball = ball freeze end |