class Array
Redefine string representation of Array
Public Instance Methods
to_s()
click to toggle source
# File lib/lorj/compat.rb, line 44 def to_s '[' + map do |a| if a.is_a?(String) "\"#{a}\"" elsif a.is_a?(Symbol) ":#{a}" else a.to_s end end.join(', ') + ']' end