Class: CallSheet::StepAdapters::Base Private
- Inherits:
-
Object
- Object
- CallSheet::StepAdapters::Base
- Defined in:
- lib/call_sheet/step_adapters/base.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #operation ⇒ Object readonly private
- #options ⇒ Object readonly private
Instance Method Summary collapse
- #arity ⇒ Object private
-
#initialize(operation, options) ⇒ Base
constructor
private
A new instance of Base.
Constructor Details
#initialize(operation, options) ⇒ Base
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/call_sheet/step_adapters/base.rb', line 8 def initialize(operation, ) @operation = operation @options = end |
Instance Attribute Details
#operation ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/call_sheet/step_adapters/base.rb', line 5 def operation @operation end |
#options ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/call_sheet/step_adapters/base.rb', line 6 def @options end |
Instance Method Details
#arity ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/call_sheet/step_adapters/base.rb', line 13 def arity operation.is_a?(Proc) ? operation.arity : operation.method(:call).arity end |