def_delegator

def_delegator(accessor, method, ali = method) Instance Public methods Alias for: def_instance_delegator

partial_with_counter

partial_with_counter() Instance Public methods

getname

getname(address) Class Public methods Looks up the hostname of address.

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"

set_eoutvar

set_eoutvar(compiler, eoutvar = '_erbout') Instance Public methods Overrides compiler startup to set the eoutvar to an empty string only if it isn't already set.

require

require(key) Instance Public methods Ensures that a parameter is present. If it's present, returns the parameter at the given key, otherwise raises an ActionController::ParameterMissing error. ActionController::Parameters.new(person: { name: 'Francesco' }).require(:person) # => {"name"=>"Francesco"} ActionController::Parameters.new(person: nil).require(:person) # => ActionController::ParameterMissing: param not found: person ActionController::Parameters.new(person: {}).r

_layout_for

_layout_for(*args, &block) Instance Public methods Overwrites #_layout_for in the context object so it supports the case a block is passed to a partial. Returns the contents that are yielded to a layout, given a name or a block. You can think of a layout as a method that is called with a block. If the user calls yield :some_name, the block, by default, returns content_for(:some_name). If the user calls simply yield, the default block returns content_for(:layout). The user can o

[]=

[]=(slot, value) Instance Public methods

__method__

__method__ â symbol__callee__ â symbol Instance Public methods Returns the name of the current method as a Symbol. If called outside of a method, it returns nil.

instrument

instrument(name, payload={}) Instance Public methods Instrument the given block by measuring the time taken to execute it and publish it. Notice that events get sent even if an error occurs in the passed-in block.