popup_menu

popup_menu(name = "", *values) Instance Public methods Generate a Select element as a string. name is the name of the element. The values are the options that can be selected from the Select menu. Each value can be a String or a one, two, or three-element Array. If a String or a one-element Array, this is both the value of that option and the text displayed for it. If a three-element Array, the elements are the option value, displayed text, and a boolean value specifying whether

lchown

pathname.lchown â integer Instance Public methods Same as #chown, but does not follow symbolic links. See File.lchown.

execute

execute(args=nil) Instance Public methods Execute the actions associated with this task.

stat

stat() Instance Public methods

all_waits

all_waits(*threads) Class Public methods Waits until all specified threads have terminated. If a block is provided, it is executed for each thread as they terminate.

new

new(anchor = nil, tag = nil, implicit = true, style = BLOCK) Class Public methods Create a new object representing a YAML sequence. anchor is the anchor associated with the sequence or nil. tag is the tag associated with the sequence or nil. implicit a boolean indicating whether or not the sequence was implicitly started. style is an integer indicating the list style. See Psych::Handler#start_sequence

nl

nl() Class Public methods Enable the underlying display device to translate the return key into newline on input, and whether it translates newline into return and line-feed on output (in either case, the call ::addch('n') does the equivalent of return and line feed on the virtual screen). Initially, these translations do occur. If you disable them using ::nonl, curses will be able to make better use of the line-feed capability, resulting in faster cursor motion. Also, curses will

pretty_print_cycle

pretty_print_cycle(q) Instance Public methods

<=

obj Instance Public methods Compares two objects based on the receiver's <=> method, returning true if it returns -1 or 0.

after_validation

after_validation(*args, &block) Instance Public methods Defines a callback that will get called right after validation happens. class Person include ActiveModel::Validations include ActiveModel::Validations::Callbacks attr_accessor :name, :status validates_presence_of :name after_validation :set_status private def set_status self.status = errors.empty? end end person = Person.new person.name = '' person.valid? # => false person.status # => false