array

WIN32OLE_VARIANT.array(ary, vt) Class Public methods Returns Ruby object wrapping OLE variant whose variant type is VT_ARRAY. The first argument should be Array object which specifies dimensions and each size of dimensions of OLE array. The second argument specifies variant type of the element of OLE array. The following create 2 dimensions OLE array. The first dimensions size is 3, and the second is 4. ole_ary = WIN32OLE_VARIANT.array([3,4], VT_I4) ruby_ary = ole_ary.value # =>

delete_matched

delete_matched(matcher, options = nil) Instance Public methods

select

select(sql, name = nil, binds = []) Instance Public methods Returns an ActiveRecord::Result instance.

children_size

children_size() Instance Public methods Alias for: numchildren

format

format(format = nil, *args) Instance Public methods Returns the contents of this Tms object as a formatted string, according to a format string like that passed to Kernel#format. In addition, format accepts the following extensions: %u Replaced by the user CPU time, as reported by #utime. %y Replaced by the system CPU time, as reported by stime (Mnemonic: y of âs*y*stemâ) %U Replaced by the children's user CPU time, as reported by #cutime %Y Replaced by the children'

add

add() Instance Public methods Returns a new Tms object whose times are the sum of the times for this Tms object, plus the time required to execute the code block (blk).

images

images() Instance Public methods

inspect

struct.to_s â stringstruct.inspect â string Instance Public methods Describe the contents of this struct in a string. to_s

join

ary.join(separator=$,) â str Instance Public methods Returns a string created by converting each element of the array to a string, separated by the given separator. If the separator is nil, it uses current $,. If both the separator and $, are nil, it uses empty string. [ "a", "b", "c" ].join #=> "abc" [ "a", "b", "c" ].join("-") #=> "a-b-c"

helper_method

helper_method(*meths) Instance Public methods Declare a controller method as a helper. For example, the following makes the current_user controller method available to the view: class ApplicationController < ActionController::Base helper_method :current_user, :logged_in? def current_user @current_user ||= User.find_by(id: session[:user]) end def logged_in? current_user != nil end end In a view: <% if logged_in? -%>Welcome, <%= current_user.name %>