Class
Hash
Home
In: locana/l_event.rb locana/l_others.rb
Parent: Object

Here are some extensions to the Hash class used by Locana.

Methods

+, -, get_keys_as_strings,
Included modules

Levent_method
Public Instance methods
+(h) src

Returns a new Hash including the union of self and h. This allows you to do things like:

  hash = {:my_value=>4}
  hash + {:my_other_value=>10}  => {:my_value=>4, :my_other_value=>10}
-(h) src

Returns a new Hash with elements from h removed from self. This allows you to do things like:

  hash = {:my_value=>4, :another=>'test'}
  hash - {:another=>1}  => {:my_value=>4}
get_keys_as_strings() src

Returns an array of the keys after the keys have been converted to strings.


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com