Class: Hash

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

Overview

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

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

hsh = {'a'=>1, 'b'=>2, 'c'=>3}

Instance Method Summary collapse

Instance Method Details

#lxObject

Creates a LX::Array object and returns it.



266
267
268
# File 'lib/lx.rb', line 266

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