class SmartCore::Operation::Step
@api private @since 0.5.0
Attributes
method_name[R]
@return [String, Symbol]
@api private @since 0.5.0
options[R]
@return [Hash<Symbol,Any>]
@api private @since 0.5.0
Public Class Methods
new(method_name, **options)
click to toggle source
@param method_name
[String, Symbol] @param options [Hash<Symbol,Any>] @return [void]
@api private @since 0.5.0
# File lib/smart_core/operation/step.rb, line 24 def initialize(method_name, **options) 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 = options # TODO: support for another operations end
Public Instance Methods
dup()
click to toggle source
@return [SmartCore::Operation::Step]
@api private @since 0.5.0
# File lib/smart_core/operation/step.rb, line 40 def dup self.class.new(method_name, **options) end