caller_locations

caller_locations(start=1, length=nil) â array or nilcaller_locations(range) â array or nil Instance Public methods Returns the current execution stackâan array containing backtrace location objects. See Thread::Backtrace::Location for more information. The optional start parameter determines the number of initial stack entries to omit from the top of the stack. A second optional length parameter can be used to limit how many entries are returned from the stack.

[]

[](name) Instance Public methods Lookup a task named name in the namespace.

exec_insert

exec_insert(sql, name, binds, pk = nil, sequence_name = nil) Instance Public methods Executes insert sql statement in the context of this connection using binds as the bind substitutes. name is logged along with the executed sql statement.

silence

silence(temporary_level = Logger::ERROR) Instance Public methods Silences the logger for the duration of the block.

permit

permit(*filters) Instance Public methods Returns a new ActionController::Parameters instance that includes only the given filters and sets the permitted attribute for the object to true. This is useful for limiting which attributes should be allowed for mass updating. params = ActionController::Parameters.new(user: { name: 'Francesco', age: 22, role: 'admin' }) permitted = params.require(:user).permit(:name, :age) permitted.permitted? # => true permitted.has_key?(:name) # =

select_first

select_first(root) Instance Public methods Similar to select but returns the first matching element. Returns nil if no element matches the selector.

values_at

ENV.values_at(name, ...) â Array Class Public methods Returns an array containing the environment variable values associated with the given names. See also ::select.

column_delete

column_delete(idx) Instance Public methods

timestamp

timestamp() Instance Public methods Time stamp for file task.

each_pair

struct.each_pair {|sym, obj| block } â structstruct.each_pair â an_enumerator Instance Public methods Calls block once for each instance variable, passing the name (as a symbol) and the value as parameters. If no block is given, an enumerator is returned instead. Customer = Struct.new(:name, :address, :zip) joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) joe.each_pair {|name, value| puts("#{name} => #{value}") } produces: name =>