Class: SmartCore::Operation::Step Private
- Inherits:
-
Object
- Object
- SmartCore::Operation::Step
- Defined in:
- lib/smart_core/operation/step.rb
Overview
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
- #method_name ⇒ String, Symbol readonly private
- #options ⇒ Hash<Symbol,Any> readonly private
Instance Method Summary collapse
- #dup ⇒ SmartCore::Operation::Step private
- #initialize(method_name, **options) ⇒ void constructor private
Constructor Details
#initialize(method_name, **options) ⇒ void
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.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/smart_core/operation/step.rb', line 24 def initialize(method_name, **) unless method_name.is_a?(Symbol) || method_name.is_a?(String) raise( SmartCore::Operation::IncorrectStepNameError, 'Step name should be a symbol or a string' ) end @method_name = method_name.to_sym @options = # TODO: support for another operations end |
Instance Attribute Details
#method_name ⇒ String, Symbol (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.
10 11 12 |
# File 'lib/smart_core/operation/step.rb', line 10 def method_name @method_name end |
#options ⇒ Hash<Symbol,Any> (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.
16 17 18 |
# File 'lib/smart_core/operation/step.rb', line 16 def @options end |
Instance Method Details
#dup ⇒ SmartCore::Operation::Step
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.
40 41 42 |
# File 'lib/smart_core/operation/step.rb', line 40 def dup self.class.new(method_name, **) end |