Class: Array

Inherits:
Object
  • Object
show all
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(options = {})
  if options
    map { |v| v.as_json(options.dup) }
  else
    map(&:as_json)
  end
end