filter

filter() Instance Public methods

find_command

find_command(cmd_name) Instance Public methods

attrset

attrset(attrs) Instance Public methods Sets the current attributes of the given window to attrs. The following video attributes, defined in <curses.h>, can be passed to the routines #attron, #attroff, and #attrset, or OR'd with the characters passed to addch. A_NORMAL Normal display (no highlight) A_STANDOUT Best highlighting mode of the terminal. A_UNDERLINE Underlining A_REVERSE Reverse video A_BLINK Blinking A_DIM Half bright A_BOLD

opened?

opened? Class Public methods Returns true if the syslog is open.

has_attribute?

has_attribute?(attr_name) Instance Public methods Returns true if the given attribute is in the attributes hash, otherwise false. class Person < ActiveRecord::Base end person = Person.new person.has_attribute?(:name) # => true person.has_attribute?('age') # => true person.has_attribute?(:nothing) # => false

minor

minor(*param) Instance Public methods Returns a section of the matrix. The parameters are either: start_row, nrows, start_col, ncols; OR row_range, col_range Matrix.diagonal(9, 5, -3).minor(0..1, 0..2) => 9 0 0 0 5 0 Like Array#[], negative indices count backward from the end of the row or column (-1 is the last element). Returns nil if the starting row or column is greater than #row_count or #column_count respectively.

expected

expected() Instance Public methods

have_struct_member

have_struct_member(type, member, headers = nil, opt = "", &b) Instance Public methods Returns whether or not the struct of type type contains member. If it does not, or the struct type can't be found, then false is returned. You may optionally specify additional headers in which to look for the struct (in addition to the common header files). If found, a macro is passed as a preprocessor constant to the compiler using the type name and the member name, in uppercase, prepended

define_attribute_method

define_attribute_method(attr_name) Instance Public methods Declares an attribute that should be prefixed and suffixed by ActiveModel::AttributeMethods. To use, pass an attribute name (as string or symbol), be sure to declare define_attribute_method after you define any prefix, suffix or affix method, or they will not hook in. class Person include ActiveModel::AttributeMethods attr_accessor :name attribute_method_suffix '_short?' # Call to define_attribute_method must appe

to_a

ENV.to_a â Array Class Public methods Converts the environment variables into an array of names and value arrays. ENV.to_a # => [["TERM", "xterm-color"], ["SHELL", "/bin/bash"], ...]