updated

updated(message) Instance Public methods Prints out a dot and ignores message.

table_name_options

table_name_options(config = ActiveRecord::Base) Instance Public methods

store

store(key, val) Instance Public methods

force_import 2

force_import() Instance Public methods

migrate

migrate(direction) Class Public methods

new

OpenSSL::ASN1::ASN1Data.new(value, tag, tag_class) => ASN1Data Class Public methods value: Please have a look at Constructive and Primitive to see how Ruby types are mapped to ASN.1 types and vice versa. tag: A Number indicating the tag number. tag_class: A Symbol indicating the tag class. Please cf. ASN1 for possible values. Example asn1_int = OpenSSL::ASN1Data.new(42, 2, :UNIVERSAL) # => Same as OpenSSL::ASN1::Integer.new(42) tagged_int = OpenSSL::ASN1Data.new(42, 0, :CONT

add_line_numbers

add_line_numbers(src) Instance Public methods Prepend src with line numbers. Relies on the first line of a source code listing having: # File xxxxx, line dddd If it has this comment then line numbers are added to src and the , line dddd portion of the comment is removed.

find_in_batches

find_in_batches(options = {}) Instance Public methods Yields each batch of records that was found by the find options as an array. Person.where("age > 21").find_in_batches do |group| sleep(50) # Make sure it doesn't get too crowded in there! group.each { |person| person.party_all_night! } end If you do not provide a block to find_in_batches, it will return an Enumerator for chaining with other methods: Person.find_in_batches.with_index do |group, batch| puts "Processing g

close

close() Instance Public methods Sends a CLOSE command to close the currently selected mailbox. The CLOSE command permanently removes from the mailbox all messages that have the Deleted flag set.

add

add(key, &block) Class Public methods Adds a new renderer to call within controller actions. A renderer is invoked by passing its name as an option to AbstractController::Rendering#render. To create a renderer pass it a name and a block. The block takes two arguments, the first is the value paired with its key and the second is the remaining hash of options passed to render. Create a csv renderer: ActionController::Renderers.add :csv do |obj, options| filename = options[:file