Method: SmartCore::Operation::StepSet#dup
- Defined in:
- lib/smart_core/operation/step_set.rb
#dup ⇒ 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.
47 48 49 50 51 52 53 |
# File 'lib/smart_core/operation/step_set.rb', line 47 def dup thread_safe do self.class.new.tap do |duplicate| steps.each { |step| duplicate.add_step(step.dup) } end end end |