column

column(j) Instance Public methods Returns column vector number j of the matrix as a Vector (starting at 0 like an array). When a block is given, the elements of that vector are iterated.

scalar

scalar(value, anchor, tag, plain, quoted, style) Instance Public methods Called when a scalar value is found. The scalar may have an anchor, a tag, be implicitly plain or implicitly quoted value is the string value of the scalar anchor is an associated anchor or nil tag is an associated tag or nil plain is a boolean value quoted is a boolean value style is an integer idicating the string style See the constants in Psych::Nodes::Scalar for the possible values of style Example Here

index

index(idx) Instance Public methods

candidate 2

candidate(key, icase = false, pat = nil) Instance Public methods

delete

delete() Instance Public methods Marks a message for deletion on the server. Deletion does not actually occur until the end of the session; deletion may be cancelled for all marked messages by calling Net::POP3#reset. This method raises a POPError if an error occurs. Example POP3.start('pop.example.com', 110, 'YourAccount, 'YourPassword') do |pop| n = 1 pop.mails.each do |popmail| File.open("inbox/#{n}", 'w') do |f| f.write popmail.pop end popmail.

validates_uniqueness_of

validates_uniqueness_of(*attr_names) Instance Public methods Validates whether the value of the specified attributes are unique across the system. Useful for making sure that only one user can be named âdavidhhâ. class Person < ActiveRecord::Base validates_uniqueness_of :user_name end It can also validate whether the value of the specified attributes are unique based on a :scope parameter: class Person < ActiveRecord::Base validates_uniqueness_of :user_name, scope: :acco

identical?

File.identical?(file_1, file_2) â true or false Class Public methods Returns true if the named files are identical. file_1 and file_2 can be an IO object. open("a", "w") {} p File.identical?("a", "a") #=> true p File.identical?("a", "./a") #=> true File.link("a", "b") p File.identical?("a", "b") #=> true File.symlink("a", "c") p File.identical?("a", "c") #=> true open("d", "w") {} p File.identical?("a", "d") #=> false

filtered_query_string

filtered_query_string() Instance Protected methods

get_frame

get_frame() Instance Public methods

primary_key

primary_key(name, type = :primary_key, options = {}) Instance Public methods Defines the primary key field. Use of the native PostgreSQL UUID type is supported, and can be used by defining your tables as such: create_table :stuffs, id: :uuid do |t| t.string :content t.timestamps end By default, this will use the +uuid_generate_v4()+ function from the uuid-ossp extension, which MUST be enabled on your database. To enable the uuid-ossp extension, you can use the enable_extension