Class: Leeno::Array
- Inherits:
-
Array
- Object
- Array
- Leeno::Array
- Defined in:
- lib/leeno/extention/array.rb
Instance Method Summary collapse
-
#initialize(list = []) ⇒ Array
constructor
A new instance of Array.
- #to_json ⇒ Object
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_json ⇒ Object
6 7 8 |
# File 'lib/leeno/extention/array.rb', line 6 def to_json map &:to_json end |