class Apipie::Extractor::OrderedHash

Used to keep apipie_examples.yml params in order

Public Instance Methods

to_yaml(opts = {}) click to toggle source
# File lib/apipie/extractor/writer.rb, line 420
def to_yaml(opts = {})
  YAML.quick_emit(self, opts) do |out|
    out.map(taguri) do |map|
      each do |k, v|
        map.add(k, v)
      end
    end
  end
end
to_yaml_type() click to toggle source
# File lib/apipie/extractor/writer.rb, line 416
def to_yaml_type
  "!tag:yaml.org,2002:map"
end