Class: Apipie::Extractor::OrderedHash
- Inherits:
-
ActiveSupport::OrderedHash
- Object
- ActiveSupport::OrderedHash
- Apipie::Extractor::OrderedHash
- Defined in:
- lib/apipie/extractor/writer.rb
Overview
Used to keep apipie_examples.yml params in order
Instance Method Summary collapse
Instance Method Details
#to_yaml(opts = {}) ⇒ Object
409 410 411 412 413 414 415 416 417 |
# File 'lib/apipie/extractor/writer.rb', line 409 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 ⇒ Object
405 406 407 |
# File 'lib/apipie/extractor/writer.rb', line 405 def to_yaml_type "!tag:yaml.org,2002:map" end |