Sha256: dc295a4e25d99a7abc97911c7e5b380d66920ecd9b8bdef9f1f3036893acd409

Contents?: true

Size: 118 Bytes

Versions: 14

Compression:

Stored size: 118 Bytes

Contents

require 'yaml'

module CabbageDoc
  module Cloneable
    def clone
      YAML.load(YAML.dump(self))
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cabbage_doc-0.1.4 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.1.3 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.1.2 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.1.1 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.1.0 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.9 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.8 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.7 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.6 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.5 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.4 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.3 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.2 lib/cabbage_doc/cloneable.rb
cabbage_doc-0.0.1 lib/cabbage_doc/cloneable.rb