Class: Hash

Inherits:
Object show all
Defined in:
lib/maruku/structures_inspect.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) inspect_ordered(a = nil, b = nil)



48
49
50
51
# File 'lib/maruku/structures_inspect.rb', line 48

def inspect_ordered(a=nil,b=nil)
	"{"+keys.map{|x|x.to_s}.sort.map{|x|x.to_sym}.
	map{|k| k.inspect + "=>"+self[k].inspect}.join(',')+"}"
end