look_for_directives_in

look_for_directives_in(context, comment) Instance Public methods Look for directives in a normal comment block: # :stopdoc: # Don't display comment from this point forward This routine modifies its comment parameter.

create

create(nb) Class Public methods

add_tag

add_tag(name, start, stop) Instance Public methods Add a new set of tags for an attribute. We allow separate start and end tags for flexibility

_racc_init_sysvars

_racc_init_sysvars() Instance Public methods

set_encoding

strio.set_encoding(ext_enc, [int_enc[, opt]]) => strio Instance Public methods Specify the encoding of the StringIO as ext_enc. Use the default external encoding if ext_enc is nil. 2nd argument int_enc and optional hash opt argument are ignored; they are for API compatibility to IO.

[]

[]( index, name=nil) Instance Public methods Fetches a child element. Filters only Element children, regardless of the XPath match. index the search parameter. This is either an Integer, which will be used to find the index'th child Element, or an XPath, which will be used to search for the Element. Because of the nature of XPath searches, any element in the connected XML document can be fetched through any other element. The Integer index is 1-based, not 0-based. This means

pull

pull() Instance Public methods Returns the next event. This is a PullEvent object.

next

next() Instance Public methods

to_query

to_query(namespace = nil) Instance Public methods Returns a string representation of the receiver suitable for use as a URL query string: {name: 'David', nationality: 'Danish'}.to_query # => "name=David&nationality=Danish" An optional namespace can be passed to enclose key names: {name: 'David', nationality: 'Danish'}.to_query('user') # => "user%5Bname%5D=David&user%5Bnationality%5D=Danish" The string pairs âkey=valueâ that conform the query string are sorted lexico

request_post

request_post(path, data, initheader = nil) Instance Public methods Sends a POST request to the path. Returns the response as a Net::HTTPResponse object. When called with a block, the block is passed an HTTPResponse object. The body of that response will not have been read yet; the block can process it using Net::HTTPResponse#read_body, if desired. Returns the response. This method never raises Net::* exceptions. # example response = http.request_post('/cgi-bin/nice.rb', 'datadatad