family_addrinfo

family_addrinfo(*args) Instance Public methods creates an Addrinfo object from the arguments. The arguments are interpreted as similar to self. Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80) #=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)> Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2") #=> #<Addrinfo: /tmp/sock2 SOCK_STREAM>

add_attribute

add_attribute(p1) Instance Public methods

parser

parser() Class Public methods Returns a default parser

loaded_from=

loaded_from=(path) Instance Public methods Set the location a Specification was loaded from. obj is converted to a String.

transformNodeToObject

transformNodeToObject(arg0, arg1) Instance Public methods VOID transformNodeToObject apply the stylesheet to the subtree, returning the result through a document or a stream IXMLDOMNode arg0 --- stylesheet [IN] VARIANT arg1 --- outputObject [IN]

status=

status=(status) Instance Public methods

def_class

def_class(superklass=Object, methodname='result') Instance Public methods Define unnamed class which has methodname as instance method, and return it. example: class MyClass_ def initialize(arg1, arg2) @arg1 = arg1; @arg2 = arg2 end end filename = 'example.rhtml' # @arg1 and @arg2 are used in example.rhtml erb = ERB.new(File.read(filename)) erb.filename = filename MyClass = erb.def_class(MyClass_, 'render()') print MyClass.new('foo', 123).render()

started_request_message

started_request_message(request) Instance Protected methods Started GET â/session/newâ for 127.0.0.1 at 2012-09-26 14:51:42 -0700

recvfrom

unixsocket.recvfrom(maxlen [, flags]) => [mesg, unixaddress] Instance Public methods Receives a message via unixsocket. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. s1 = Socket.new(:UNIX, :DGRAM, 0) s1_ai = Addrinfo.unix("/tmp/sock1") s1.bind(s1_ai) s2 = Socket.new(:UNIX, :DGRAM, 0) s2_ai = Addrinfo.unix("/tmp/sock2") s2.bind(s2_ai) s3 = UNIXSocket.for_fd(s2.fileno) s1.send "a", 0, s2_ai p s3.recvfrom(10) #=> ["

new

new(src, filename = '-', lineno = 1) Class Public methods Creates a new Ripper::Filter instance, passes parameters src, filename, and lineno to Ripper::Lexer.new The lexer is for internal use only.