Class OHash
In: lib/uttk/dumpers/Yaml.rb
Parent: Object

Methods

to_yaml  

Public Instance methods

[Source]

# File lib/uttk/dumpers/Yaml.rb, line 18
  def to_yaml ( opts={} )
    if YAML.have_option? opts, :uttk
      YAML::quick_emit(self.object_id, opts) do |out|
        out.seq('') do |seq|
          self.each do |k,v|
            seq.add( { k => v } )
          end
        end
      end
    else
      super
    end
  end

[Validate]