generate_class

generate_class(klass, io = STDOUT) Instance Public methods

new

new( source = nil, context = {} ) Class Public methods Constructor @param source if supplied, must be a Document, String, or IO. Documents have their context and Element attributes cloned. Strings are expected to be valid XML documents. IOs are expected to be sources of valid XML documents. @param context if supplied, contains the context of the document; this should be a Hash.

destroy

destroy() Instance Public methods

add

Logger#add(severity, message = nil, progname = nil) { ... } Instance Public methods Args severity Severity. Constants are defined in Logger namespace: DEBUG, INFO, WARN, ERROR, FATAL, or UNKNOWN. message The log message. A String or Exception. progname Program name string. Can be omitted. Treated as a message if no message and block are given. block Can be omitted. Called to get a message string if message is nil. Return true if successful, false otherwise. W

source

source() Instance Public methods

_conv_listelement

_conv_listelement(str) Instance Public methods

size

size() Instance Public methods

def_convert

def_convert(depth=0) Instance Public methods

sysconfdir

sysconfdir() Class Public methods Returns system configuration directory. This is typically â/etcâ, but is modified by the prefix used when Ruby was compiled. For example, if Ruby is built and installed in /usr/local, returns â/usr/local/etcâ.

add_flash_types

add_flash_types(*types) Instance Public methods Creates new flash types. You can pass as many types as you want to create flash types other than the default alert and notice in your controllers and views. For instance: # in application_controller.rb class ApplicationController < ActionController::Base add_flash_types :warning end # in your controller redirect_to user_path(@user), warning: "Incomplete profile" # in your view <%= warning %> This method will automatically