log

log(msg) Instance Protected methods Log a message to stdlog, if it's defined. This implementation outputs the timestamp and message to the log. msg the message to log

attribute_present?

attribute_present?(attribute) Instance Public methods Returns true if the specified attribute has been set by the user or by a database load and is neither nil nor empty? (the latter only applies to objects that respond to empty?, most notably Strings). Otherwise, false. Note that it always returns true with boolean attributes. class Task < ActiveRecord::Base end person = Task.new(title: '', is_done: false) person.attribute_present?(:title) # => false person.attribute_pres

package_version 2

package_version() Class Public methods

parse

parse(uri) Instance Public methods Args uri String Description parses uri and constructs either matching URI scheme object (FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic Usage p = URI::Parser.new p.parse("ldap://ldap.example.com/dc=example?user=john") #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>

base64digest

base64digest(str, *args) Class Public methods Returns the base64 encoded hash value of a given string. The return value is properly padded with '=' and contains no line feeds.

nodeValue

nodeValue() Instance Public methods VARIANT nodeValue value stored in the node

lambda

lambda { |...| block } â a_proc Instance Public methods Equivalent to Proc.new, except the resulting Proc objects check the number of parameters passed when called.

delete

delete() Instance Public methods Deletes the record in the database and freezes this instance to reflect that no changes should be made (since they can't be persisted). Returns the frozen instance. The row is simply removed with an SQL DELETE statement on the record's primary key, and no callbacks are executed. To enforce the object's before_destroy and after_destroy callbacks or any :dependent association options, use #destroy.

set_trace_func

set_trace_func(proc) â procset_trace_func(nil) â nil Instance Public methods Establishes proc as the handler for tracing, or disables tracing if the parameter is nil. proc takes up to six parameters: an event name a filename a line number an object id a binding the name of a class proc is invoked whenever an event occurs. Events are: c-call call a C-language routine c-return return from a C-language routine call call a Ruby method class start a

new

new(config, default=Config::BasicAuth) Class Public methods Creates a new BasicAuth instance. See WEBrick::Config::BasicAuth for default configuration entries You must supply the following configuration entries: :Realm The name of the realm being protected. :UserDB A database of usernames and passwords. A WEBrick::HTTPAuth::Htpasswd instance should be used.