instance method to_yaml

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

to_yaml(opts = {})

No documentation comment.

Parameters

opts opt = {}
Source
# File activesupport/lib/active_support/ordered_hash.rb, line 32
    def to_yaml(opts = {})
      if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck?
        return super
      end

      YAML.quick_emit(self, opts) do |out|
        out.seq(taguri) do |seq|
          each do |k, v|
            seq.add(k => v)
          end
        end
      end
    end

Defined in activesupport/lib/active_support/ordered_hash.rb line 32 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::OrderedHash

Type at least 2 characters to search.

↑↓ navigate · open · esc close