encoding

obj.encoding â encoding Instance Public methods Returns the Encoding object that represents the encoding of obj.

path

WIN32OLE_TYPELIB#path â The type library file path. Instance Public methods Returns the type library file path. tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 9.0 Object Library') puts tlib.path #-> 'C:\...\EXCEL9.OLB'

name

name() Instance Public methods

recvfrom_nonblock

udpsocket.recvfrom_nonblock(maxlen) => [mesg, sender_inet_addr]udpsocket.recvfrom_nonblock(maxlen, flags) => [mesg, sender_inet_addr] Instance Public methods Receives up to maxlen bytes from udpsocket using recvfrom(2) after O_NONBLOCK is set for the underlying file descriptor. If maxlen is omitted, its default value is 65536. flags is zero or more of the MSG_ options. The first element of the results, mesg, is the data received. The second element, sender_inet_addr, is an a

unpack

sockopt.unpack(template) => array Instance Public methods Calls String#unpack on sockopt.data. sockopt = Socket::Option.new(:INET, :SOCKET, :KEEPALIVE, [1].pack("i")) p sockopt.unpack("i") #=> [1] p sockopt.data.unpack("i") #=> [1]

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

increment_counter

increment_counter(counter_name, id) Instance Public methods Increment a numeric field by one, via a direct SQL update. This method is used primarily for maintaining counter_cache columns that are used to store aggregate values. For example, a DiscussionBoard may cache posts_count and comments_count to avoid running an SQL query to calculate the number of posts and comments there are, each time it is displayed. Parameters counter_name - The name of the field that should be incremen

reset

digest_obj.reset â digest_obj Instance Public methods Resets the digest to the initial state and returns self.

readfile

readfile(file, pri=None) Class Public methods Also aliased as: read_file

<<

<<( to_append ) Instance Public methods Appends text to this text node. The text is appended in the raw mode of this text node.