Method: Qonfig::CommandSet#dup

Defined in:
lib/qonfig/command_set.rb

#dupQonfig::CommandSet

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:

Since:

  • 0.2.0



57
58
59
60
61
# File 'lib/qonfig/command_set.rb', line 57

def dup
  thread_safe do
    self.class.new.tap { |duplicate| duplicate.concat(self) }
  end
end