pos

pos() Instance Public methods # move to Tk::Text::IndexModMethods module def +(mod) return chars(mod) if mod.kind_of?(Numeric) mod = mod.to_s if mod =~ /^\s*[+-]?\d/ Tk::Text::IndexString.new(@id + ' + ' + mod) else Tk::Text::IndexString.new(@id + ' ' + mod) end end def -(mod) return chars(-mod) if mod.kind_of?(Numeric) mod = mod.to_s if mod =~ /^\s*[+-]?\d/ Tk::Text::IndexString.new(@id + ' - ' + mod) elsif mod =~ /^\s*[-]\s+(\d.*)$/ Tk::Text::IndexString.new(@id + ' -

move2

move2(step = nil) Instance Public methods

_conv_listelement

_conv_listelement(arg) Class Public methods

license=

license=(o) Instance Public methods The license for this gem. The license must be a short name, no more than 64 characters. This should just be the name of your license. The full text of the license should be inside of the gem when you build it. You can set multiple licenses with licenses= Usage: spec.license = 'MIT'

getsockopt

getsockopt(level, optname) Instance Public methods

unix?

addrinfo.unix? => true or false Instance Public methods returns true if addrinfo is UNIX address. returns false otherwise. Addrinfo.tcp("127.0.0.1", 80).unix? #=> false Addrinfo.tcp("::1", 80).unix? #=> false Addrinfo.unix("/tmp/sock").unix? #=> true

activate

activate(pc) Class Public methods

validates_presence_of

validates_presence_of(*attr_names) Instance Public methods Validates that the specified attributes are not blank (as defined by Object#blank?), and, if the attribute is an association, that the associated object is not marked for destruction. Happens by default on save. class Person < ActiveRecord::Base has_one :face validates_presence_of :face end The face attribute must be in the object and it cannot be blank or marked for destruction. If you want to validate the presence

shutdown

shutdown() Instance Public methods Stops and shuts the server down.

select_tag

select_tag(name, option_tags = nil, options = {}) Instance Public methods Creates a dropdown selection box, or if the :multiple option is set to true, a multiple choice selection box. Helpers::FormOptions can be used to create common select boxes such as countries, time zones, or associated records. option_tags is a string containing the option tags for the select box. Options :multiple - If set to true the selection will allow multiple choices. :disabled - If set to true, the u