Class: Dry::Effects::Handler
- Inherits:
-
Object
- Object
- Dry::Effects::Handler
- Defined in:
- lib/dry/effects/handler.rb
Instance Attribute Summary collapse
-
#frame ⇒ Object
readonly
Returns the value of attribute frame.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(type, *args) ⇒ Handler
constructor
A new instance of Handler.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
Instance Attribute Details
#frame ⇒ Object (readonly)
Returns the value of attribute frame.
8 9 10 |
# File 'lib/dry/effects/handler.rb', line 8 def frame @frame end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/dry/effects/handler.rb', line 6 def provider @provider end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'lib/dry/effects/handler.rb', line 15 def call(...) frame.(...) end |
#to_s ⇒ Object Also known as: inspect
19 20 21 |
# File 'lib/dry/effects/handler.rb', line 19 def to_s "#<Dry::Effects::Handler #{provider.represent}>" end |