any_waiting?() Instance Public methods Test if any threads are currently waiting on the queue.
configcolumns(*args) Instance Public methods Also aliased as: config_columns
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(table_name, column_name, default) Instance Public methods
encoding=(enc) Instance Public methods Inherited from Encoding Overridden to support optimized en/decoding
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(*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(pattern, task) Instance Public methods
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() Instance Public methods Short-hand for #months_ago(3). last_quarter
Page 108 of 2275