Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/json/ld/extensions.rb,
lib/json/ld/extensions.rb

Class Method Summary collapse

Class Method Details

.ordered(obj = nil, &block) ⇒ Object



132
133
134
# File 'lib/json/ld/extensions.rb', line 132

def self.ordered(obj = nil, &block)
  InsertOrderPreservingHash.new(obj, &block)
end