tagid

tagid(id) Instance Public methods

output

output(out, output_width) Instance Public methods

attribute_method_prefix

attribute_method_prefix(*prefixes) Instance Public methods Declares a method available for all attributes with the given prefix. Uses method_missing and respond_to? to rewrite the method. #{prefix}#{attr}(*args, &block) to #{prefix}attribute(#{attr}, *args, &block) An instance method #{prefix}attribute must exist and accept at least the attr argument. class Person include ActiveModel::AttributeMethods attr_accessor :name attribute_method_prefix 'clear_' define_at

parse_stream

parse_stream(yaml, filename = nil, &block) Class Public methods Parse a YAML string in yaml. Returns the full AST for the YAML document. This method can handle multiple YAML documents contained in yaml. filename is used in the exception message if a Psych::SyntaxError is raised. If a block is given, a Psych::Nodes::Document node will be yielded to the block as it's being parsed. Raises a Psych::SyntaxError when a YAML syntax error is detected. Example: Psych.parse_stream("---\

file_dir

file_dir() Instance Public methods The directory files are written to

distinct

distinct() Instance Public methods Specifies whether the records should be unique or not. class Person < ActiveRecord::Base has_many :pets end person.pets.select(:name) # => [ # #<Pet name: "Fancy-Fancy">, # #<Pet name: "Fancy-Fancy"> # ] person.pets.select(:name).distinct # => [#<Pet name: "Fancy-Fancy">] uniq

set_service_hook

set_service_hook(&handler) Instance Public methods A service-hook is called for each service request (RPC). You can use a service-hook for example to wrap existing methods and catch exceptions of them or convert values to values recognized by XMLRPC. You can disable it by passing nil as the handler parameter. The service-hook is called with a Proc object along with any parameters. An example: server.set_service_hook {|obj, *args| begin ret = obj.call(*args) # call the or

colormapfull

colormapfull(win) Class Public methods

validatePhoneChange

validatePhoneChange(widget, vmode, idx, char) Instance Public methods validatePhoneChange â Checks that the replacement (mapped to a digit) of the given character in an entry widget at the given position will leave a valid phone number in the widget. widget - entry widget to validate vmode - The widget's validation mode idx - The index where replacement is to occur char - The character (or string, though that will always be refused) to be overwritten at that point.

transparent_color 2

transparent_color(color) Instance Public methods