lib/qooxview/additions.rb in qooxview-1.9.9 vs lib/qooxview/additions.rb in qooxview-1.9.10

- old
+ new

@@ -18,20 +18,20 @@ def to_sym! self.replace(to_sym()) end - def to_frontend - collect { |a| a.to_frontend }.sort { |a, b| a[1]<=>b[1] } + def to_frontend(arg = nil) + collect { |a| a.to_frontend(arg) }.sort { |a, b| a[1]<=>b[1] } end def to_s "[#{join(',')}]" end end class Object - def to_frontend + def to_frontend(_ = nil) to_s end end # Converts all keys of a hash to syms recursively