Module: Enumerable

Defined in:
lib/caruby/json/serializer.rb

Instance Method Summary collapse

Instance Method Details

#to_json(*args) ⇒ String

Returns the JSON representation of this Enumerable as an array.

Parameters:

  • args

    the JSON serialization options

Returns:

  • (String)

    the JSON representation of this Enumerable as an array



66
67
68
# File 'lib/caruby/json/serializer.rb', line 66

def to_json(*args)
  to_a.to_json(*args)
end