Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/transmutation/core_ext/array.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/transmutation/core_ext/array.rb', line 5 def as_json( = {}) if map { |v| v.as_json(.dup) } else map(&:as_json) end end |