group

group(*args) Instance Public methods Allows to specify a group attribute: User.group(:name) => SELECT "users".* FROM "users" GROUP BY name Returns an array with distinct records based on the group attribute: User.select([:id, :name]) => [#<User id: 1, name: "Oscar">, #<User id: 2, name: "Oscar">, #<User id: 3, name: "Foo"> User.group(:name) => [#<User id: 3, name: "Foo", ...>, #<User id: 2, name: "Oscar", ...>] User.group('name AS grouped_na

d

d() Instance Public methods Alias for: eigenvalue_matrix

minor

minor(*param) Instance Public methods Returns a section of the matrix. The parameters are either: start_row, nrows, start_col, ncols; OR row_range, col_range Matrix.diagonal(9, 5, -3).minor(0..1, 0..2) => 9 0 0 0 5 0 Like Array#[], negative indices count backward from the end of the row or column (-1 is the last element). Returns nil if the starting row or column is greater than #row_count or #column_count respectively.

type_cast

type_cast(value) Instance Public methods

load_gemdeps

load_gemdeps(path) Instance Public methods Load a dependency management file.

scope=

scope=(val) Instance Public methods setter for scope val

active_connections?

active_connections?() Instance Public methods Returns true if there are any active connections among the connection pools that the ConnectionHandler is managing.

authenticate

authenticate(controller, &login_procedure) Instance Public methods If token Authorization header is present, call the login procedure with the present token and options. controller ActionController::Base instance for the current request. login_procedure Proc to call if a token is present. The Proc should take two arguments: authenticate(controller) { |token, options| ... } Returns the return value of login_procedure if a token is found. Returns nil if no token is found

new

Socket::AncillaryData.new(family, cmsg_level, cmsg_type, cmsg_data) â ancillarydata Class Public methods family should be an integer, a string or a symbol. Socket::AF_INET, âAF_INETâ, âINETâ, :AF_INET, :INET Socket::AF_UNIX, âAF_UNIXâ, âUNIXâ, :AF_UNIX, :UNIX etc. cmsg_level should be an integer, a string or a symbol. Socket::SOL_SOCKET, âSOL_SOCKETâ, âSOCKETâ, :SOL_SOCKET and :SOCKET Socket::IPPROTO_IP, âIPâ and :IP Socket::IPPROTO_IPV6, âIPV6â and :IPV6 Socket::IP

read_entry

read_entry(key, options) Instance Protected methods