exited?

stat.exited? â true or false Instance Public methods Returns true if stat exited normally (for example using an exit() call or finishing the program).

bool

bool() Instance Public methods

to_model

to_model() Instance Public methods If your object is already designed to implement all of the Active Model you can use the default :to_model implementation, which simply returns self. class Person include ActiveModel::Conversion end person = Person.new person.to_model == person # => true If your model does not act like an Active Model object, then you should define :to_model yourself returning a proxy object that wraps your object with Active Model compliant methods.

stringify_keys

stringify_keys() Instance Public methods

delete

delete( key ) Instance Public methods Deletes value from database associated with key. Returns value or nil.

main

Thread.main â thread Class Public methods Returns the main thread.

each_line

str.each_line(separator=$/) {|substr| block } â strstr.each_line(separator=$/) â an_enumerator Instance Public methods Splits str using the supplied parameter as the record separator ($/ by default), passing each substring in turn to the supplied block. If a zero-length record separator is supplied, the string is split into paragraphs delimited by multiple successive newlines. If no block is given, an enumerator is returned instead. print "Example one\n" "he

new

new(*args) Class Public methods

table_name=

table_name=(value) Instance Public methods Sets the table name explicitly. Example: class Project < ActiveRecord::Base self.table_name = "project" end You can also just define your own self.table_name method; see the documentation for ActiveRecord::Base#table_name.

pre_input_hook

Readline.pre_input_hook â proc Class Public methods Returns a Proc object proc to call after the first prompt has been printed and just before readline starts reading input characters. The default is nil. Raises SecurityError if $SAFE is 4.