any_waiting?

any_waiting?() Instance Public methods Test if any threads are currently waiting on the queue.

configcolumns

configcolumns(*args) Instance Public methods Also aliased as: config_columns

cwyear

d.cwyear â integer Instance Public methods Returns the calendar week based year. Date.new(2001,2,3).cwyear #=> 2001 Date.new(2000,1,1).cwyear #=> 1999

change_column_default

change_column_default(table_name, column_name, default) Instance Public methods

encoding=

encoding=(enc) Instance Public methods Inherited from Encoding Overridden to support optimized en/decoding

merge

merge(other) Instance Public methods Merges in the conditions from other, if other is an ActiveRecord::Relation. Returns an array representing the intersection of the resulting records with other, if other is an array. Post.where(published: true).joins(:comments).merge( Comment.where(spam: false) ) # Performs a single join query with both where conditions. recent_posts = Post.order('created_at DESC').first(5) Post.where(published: true).merge(recent_posts) # Returns the intersecti

uncountable

uncountable(*words) Instance Public methods Add uncountable words that shouldn't be attempted inflected. uncountable 'money' uncountable 'money', 'information' uncountable %w( money information rice )

register_task

register_task(pattern, task) Instance Public methods

retval?

WIN32OLE_PARAM#retval? Instance Public methods Returns true if argument is return value. tobj = WIN32OLE_TYPE.new('DirectX 7 for Visual Basic Type Library', 'DirectPlayLobbyConnection') method = WIN32OLE_METHOD.new(tobj, 'GetPlayerShortName') param = method.params[0] puts "#{param.name} #{param.retval?}" # => name true

prev_quarter

prev_quarter() Instance Public methods Short-hand for #months_ago(3). last_quarter