Class: Leeno::Array

Inherits:
Array
  • Object
show all
Defined in:
lib/leeno/extention/array.rb

Instance Method Summary collapse

Constructor Details

#initialize(list = []) ⇒ Array

Returns a new instance of Array.



2
3
4
# File 'lib/leeno/extention/array.rb', line 2

def initialize list=[]
  super(list)
end

Instance Method Details

#to_jsonObject



6
7
8
# File 'lib/leeno/extention/array.rb', line 6

def to_json
  map &:to_json
end