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
355 356 357 358 359 360 361 362 363 |
# File 'lib/apipie/extractor/writer.rb', line 355 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
351 352 353 |
# File 'lib/apipie/extractor/writer.rb', line 351 def to_yaml_type "!tag:yaml.org,2002:map" end |