Sha256: c9f61c6bf1e211c1401a3806e9fb79d1ee2eba6de4c80b3ab68dad88f1e48ebd

Contents?: true

Size: 237 Bytes

Versions: 3

Compression:

Stored size: 237 Bytes

Contents

require 'yaml'

class Hash
  def to_yaml(opts = {})
    YAML::quick_emit(object_id, opts) do |out|
      out.map(taguri, to_yaml_style) do |map|
        sort.each do |k, v|
          map.add(k, v)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
realityforge-braid-0.7.2 lib/core_ext.rb
braid-0.7.1 lib/core_ext.rb
braid-0.7.0 lib/core_ext.rb