cget

cget(option) Instance Public methods

do_constants

do_constants() Instance Public methods Scans content for rb_define_variable, rb_define_readonly_variable, rb_define_const and rb_define_global_const

delete

delete(element) Instance Public methods Deletes a child Element element Either an Element, which is removed directly; an xpath, where the first matching child is removed; or an Integer, where the n'th Element is removed. Returns the removed child doc = Document.new '<a><b/><c/><c id="1"/></a>' b = doc.root.elements[1] doc.root.elements.delete b #-> <a><c/><c id="1"/></a> doc.elements.delete("a/c[@id='1']")

expire_fragment

expire_fragment(key, options = nil) Instance Public methods Removes fragments from the cache. key can take one of three forms: String - This would normally take the form of a path, like pages/45/notes. Hash - Treated as an implicit call to url_for, like { controller: 'pages', action: 'notes', id: 45} Regexp - Will remove any fragment that matches, so %r{pages/\d*/notes} might remove all notes. Make sure you don't use anchors in the regex (^ or $) because the actual filename ma

delete

delete(key) Instance Public methods

mkdir

mkdir(list, options = {}) Class Public methods Options: mode noop verbose Creates one or more directories. FileUtils.mkdir 'test' FileUtils.mkdir %w( tmp data ) FileUtils.mkdir 'notexist', :noop => true # Does not really create. FileUtils.mkdir 'tmp', :mode => 0700

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",

set_default_value_type

set_default_value_type(type) Instance Public methods Also aliased as: default_value_type=

destroy

destroy() Instance Public methods Alias for: delete

chown_R

chown_R(user, group, list, options = {}) Class Public methods Options: noop verbose force Changes owner and group on the named files (in list) to the user user and the group group recursively. user and group may be an ID (Integer/String) or a name (String). If user or group is nil, this method does not change the attribute. FileUtils.chown_R 'www', 'www', '/var/www/htdocs' FileUtils.chown_R 'cvs', 'cvs', '/var/cvs', :verbose => true