Module: VCR::OrderedHashSerializer

Defined in:
lib/vcr/structs.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.apply_to(hash, keys) ⇒ Object

1.9+ hashes are already ordered.



180
# File 'lib/vcr/structs.rb', line 180

def self.apply_to(*args); end

Instance Method Details

#eachObject



172
173
174
175
176
# File 'lib/vcr/structs.rb', line 172

def each
  @ordered_keys.each do |key|
    yield key, self[key] if has_key?(key)
  end
end