_set_global_var

_set_global_var(p1, p2) Instance Public methods

new

new() Class Public methods Create a new scanner

reset

reset() Instance Public methods Unloads the association. Returns self. class Person < ActiveRecord::Base has_many :pets end person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets # uses the pets cache # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets.reset # clears the pets cache person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop",

alias_attribute

alias_attribute(new_name, old_name) Instance Public methods Allows you to make aliases for attributes, which includes getter, setter, and query methods. class Content < ActiveRecord::Base # has a title attribute end class Email < Content alias_attribute :subject, :title end e = Email.find(1) e.title # => "Superstars" e.subject # => "Superstars" e.subject? # => true e.subject = "Megastars" e.title # => "Megastars"

new

new(connection, logger, connection_options, config) Class Public methods FIXME: Make the first parameter more similar for the two adapters

take!

take!() Instance Public methods Same as take but raises ActiveRecord::RecordNotFound if no record is found. Note that take! accepts no arguments.

encoding

obj.encoding â encoding Instance Public methods Returns the Encoding object that represents the encoding of obj.

start

start(address, port = nil, helo = 'localhost', user = nil, secret = nil, authtype = nil) Class Public methods Creates a new Net::SMTP object and connects to the server. This method is equivalent to: Net::SMTP.new(address, port).start(helo_domain, account, password, authtype) Example Net::SMTP.start('your.smtp.server') do |smtp| smtp.send_message msgstr, 'from@example.com', ['dest@example.com'] end Block Usage If called with a block, the newly-opened Net::SMTP object is yielded

unpost

unpost() Instance Public methods

fnmatch?

pathname.fnmatch?(pattern, [flags]) â string Instance Public methods Return true if the receiver matches the given pattern. See File.fnmatch.