Module: Enumerable
- Defined in:
- lib/caruby/json/serializer.rb
Instance Method Summary collapse
-
#to_json(*args) ⇒ String
The JSON representation of this Enumerable as an array.
Instance Method Details
#to_json(*args) ⇒ String
Returns 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 |