read_with_encoding

read_with_encoding(file, f_enc=nil, pri=None) Class Public methods

new

new(session, option=nil) Class Public methods Create a new NullStore instance. session is the session this instance is associated with. option is a list of initialisation options. None are currently recognised.

compile_methods! 2

compile_methods!() Instance Public methods

bg_eval_proc 2

bg_eval_proc(*args) Instance Public methods Also aliased as: background_eval_proc, thread_eval_proc, bg_call, background_call

set_handler

set_handler(hdlr = Proc.new) Class Public methods

pos=

strio.pos = integer â integer Instance Public methods Seeks to the given position (in bytes) in strio.

img

img(src = "", alt = "", width = nil, height = nil) Instance Public methods Generate an Image element as a string. src is the URL of the image. alt is the alternative text for the image. width is the width of the image, and height is its height. Alternatively, the attributes can be specified as a hash. img("src", "alt", 100, 50) # <IMG SRC="src" ALT="alt" WIDTH="100" HEIGHT="50"> img("SRC" => "src", "ALT" => "alt", "WIDTH" => 100, "HEIGHT" => 50) # <IMG S

nth_child

nth_child(a, b, of_type, reverse) Instance Protected methods Returns a lambda that can match an element against the nth-child pseudo class, given the following arguments: a â Value of a part. b â Value of b part. of_type â True to test only elements of this type (of-type). reverse â True to count in reverse order (last-).

new

new(file, thread_safe = false) Class Public methods To construct a PStore object, pass in the file path where you would like the data to be stored. PStore objects are always reentrant. But if thread_safe is set to true, then it will become thread-safe at the cost of a minor performance hit.

encoding=

encoding=(value) Instance Public methods