Class

Hash

Extends:

require ‘hpricot’

Public Methods
add_html_class! Adds the given class symbol or string to the hash in the :class key. This will add a html class if there are already any existing or create the key and add this as the first class
environmentize_keys! Destructively and non-recursively convert each key to an uppercase string.
except Returns a new hash without the selected keys:
from_xml Converts valid XML into a Ruby Hash structure.
only Returns a new Hash with only the selected keys:
respond_to?
symbolize_keys! Destructively convert all keys which respond_to?(:to_sym) to symbols. Works recursively if given nested hashes.
to_html_attributes Alias for #to_xml_attributes
to_mash convert this hash into a Mash for string or symbol key access
to_params Convert this hash to a query string:
to_xml_attributes Converts the hash into xml attributes
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.