maxim/skeptick

View on GitHub
lib/skeptick/sugar/clone.rb

Summary

Maintainability
A
20 mins
Test Coverage
module Skeptick
  class DslContext
    def clone(*args)
      obj = (args.size < 2 ? args.first : args)
      obj  = obj.join(',') if obj.is_a?(Array)
      obj ? set(:clone, obj) : set('+clone')
    end
  end
end