Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/lx.rb

Overview

Adds a single method to the Array class. This is the only method that is added to the Array class itself. Access LX utilities through the array’s new lx method.

For example, the use the move method, call the method like this:

arr = ['a', 'b', 'c']
arr.lx.move 1, 2

Instance Method Summary collapse

Instance Method Details

#lxObject

Creates a LX::Array object and returns it.



187
188
189
# File 'lib/lx.rb', line 187

def lx
	return LX::Array.new(self)
end