Class: Rison::Array::Dumper
Class Method Summary collapse
Methods inherited from Dumper
Class Method Details
.dump_array(object) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rison/array/dumper.rb', line 5 def dump_array(object) case object when [] %('') when ::Array object.map { |e| dump(e) }.join(',') else raise DumperError.new("A-Rison only accepts Array as the top level, but #{object.inspect} received.") end end |