world_readable?

stat.world_readable? â fixnum or nil Instance Public methods If stat is readable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2). m = File.stat("/etc/passwd").world_readable? #=> 420 sprintf("%o", m) #=> "644"

text?

text?() Instance Public methods Is this TopLevel from a text file instead of a source code file?

entry_widget

entry_widget() Instance Public methods

==

obj == other â true or falseobj.equal?(other) â true or falseobj.eql?(other) â true or false Instance Public methods Equality â At the Object level, == returns true only if obj and other are the same object. Typically, this method is overridden in descendant classes to provide class-specific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine object identity (that is, a.equal?(b) if and only if a is the same object

eager_load!

eager_load!() Instance Public methods Eager load the application by loading all ruby files inside eager_load paths.

validates_format_of

validates_format_of(*attr_names) Instance Public methods Validates whether the value of the specified attribute is of the correct form, going by the regular expression provided.You can require that the attribute matches the regular expression: class Person < ActiveRecord::Base validates_format_of :email, with: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, on: :create end Alternatively, you can require that the specified attribute does not match the regular expression: class

get_screen_size

Readline.get_screen_size â [rows, columns] Class Public methods Returns the terminal's rows and columns. See GNU Readline's rl_get_screen_size function. Raises NotImplementedError if the using readline library does not support. Raises SecurityError exception if $SAFE is 4.

item_create

item_create(keys={}) Instance Public methods

size

size() Instance Public methods Returns the size of the collection. If the collection hasn't been loaded, it executes a SELECT COUNT(*) query. Else it calls collection.size. If the collection has been already loaded size and length are equivalent. If not and you are going to need the records anyway length will take one less query. Otherwise size is more efficient. class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 # executes something like SELECT C

clear

clear() Instance Public methods