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
443 444 445 446 447 448 449 450 451 |
# File 'lib/apipie/extractor/writer.rb', line 443 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
439 440 441 |
# File 'lib/apipie/extractor/writer.rb', line 439 def to_yaml_type "!tag:yaml.org,2002:map" end |