create

create(chart, keys={}) Class Public methods

[]

ENV[name] â value Class Public methods Retrieves the value for environment variable name as a String. Returns nil if the named variable does not exist.

to_io

to_io() Instance Public methods

radio_button

radio_button(method, tag_value, options = {}) Instance Public methods Returns a radio button tag for accessing a specified attribute (identified by method) on an object assigned to the template (identified by object). If the current value of method is tag_value the radio button will be checked. To force the radio button to be checked pass checked: true in the options hash. You may pass HTML options there as well. # Let's say that @post.category returns "rails": radio_button("post",

open

open(hkey, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) Class Public methods â ::open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) â ::open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) { |reg| ⦠} Open the registry key subkey under key. key is Win32::Registry object of parent key. You can use predefined key HKEY_* (see Constants) desired and opt is access mask and key option. For detail, see the MSDN. If block is given, the key is closed aut

<=>

<=>(other) Instance Public methods

new

CGI.new(tag_maker) { block }CGI.new(options_hash = {}) { block } Class Public methods Create a new CGI instance. tag_maker This is the same as using the options_hash form with the value { :tag_maker => tag_maker } Note that it is recommended to use the options_hash form, since it also allows you specify the charset you will accept. options_hash A Hash that recognizes two options: :accept_charset specifies encoding of received query string. If omitted, @@accept_charset

dom_id

dom_id(record, prefix = nil) Instance Public methods The DOM id convention is to use the singular form of an object or class with the id following an underscore. If no id is found, prefix with ânew_â instead. dom_id(Post.find(45)) # => "post_45" dom_id(Post.new) # => "new_post" If you need to address multiple instances of the same class in the same view, you can prefix the #dom_id: dom_id(Post.find(45), :edit) # => "edit_post_45" dom_id(Post.new, :custom)

wednesday?

time.wednesday? â true or false Instance Public methods Returns true if time represents Wednesday. t = Time.local(1993, 2, 24) #=> 1993-02-24 00:00:00 -0600 p t.wednesday? #=> true

blt_table_iteminfo

blt_table_iteminfo(item) Instance Public methods