module Hashie::Extensions::Array::PrettyInspect
Public Class Methods
included(base)
click to toggle source
# File lib/hashie/extensions/array/pretty_inspect.rb, line 5 def self.included(base) base.send :alias_method, :array_inspect, :inspect base.send :alias_method, :inspect, :hashie_inspect end
Public Instance Methods
hashie_inspect()
click to toggle source
# File lib/hashie/extensions/array/pretty_inspect.rb, line 10 def hashie_inspect ret = "#<#{self.class} [" ret << to_a.map(&:inspect).join(', ') ret << ']>' ret end