Class: Hash
- Defined in:
- lib/amp-front/third_party/maruku/structures_inspect.rb
Instance Method Summary collapse
Instance Method Details
#inspect_ordered(a = nil, b = nil) ⇒ Object
48 49 50 51 |
# File 'lib/amp-front/third_party/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 |