structure.rb in structure-0.28.4 vs structure.rb in structure-0.28.5
- old
+ new
@@ -32,11 +32,11 @@
class_name = self.class.name || self.class.to_s.gsub(/[^\w:]/, '')
"#<#{class_name} #{
attributes
.map { |key, val|
- if val.is_a?(Array) && val.size > 3
- "#{key}=[#{val.take(3).map(&:inspect).join(', ')}...]"
+ if val.is_a?(Array)
+ "#{key}=[#{val.take(3).map(&:inspect).join(', ')}" + (val.size > 3 ? '...' : '') + ']'
else
"#{key}=#{val.inspect}"
end
}
.join(', ')