CloseKey

CloseKey(hkey) Instance Public methods

next_selector

next_selector(statement, values) Instance Protected methods Called to create a dependent selector (sibling, descendant, etc). Passes the remainder of the statement that will be reduced to zero eventually, and array of substitution values. This method is called from four places, so it helps to put it here for reuse. The only logic deals with the need to detect comma separators (alternate) and apply them to the selector group of the top selector.

list_element

list_element(*idxs) Instance Public methods Also aliased as: element_to_a

filter

filter( options = Hash.new ) { |row| ... }filter( input, options = Hash.new ) { |row| ... }filter( input, output, options = Hash.new ) { |row| ... } Class Public methods This method is a convenience for building Unix-like filters for CSV data. Each row is yielded to the provided block which can alter it as needed. After the block returns, the row is appended to output altered or not. The input and output arguments can be anything ::new accepts (generally String or IO objects). If

write

write(rsrcType, data, opts=nil) Class Public methods

convert

convert( name )convert { |field| ... }convert { |field, field_info| ... } Instance Public methods You can use this method to install a CSV::Converters built-in, or provide a block that handles a custom conversion. If you provide a block that takes one argument, it will be passed the field and is expected to return the converted value or the field itself. If your block takes two arguments, it will also be passed a CSV::FieldInfo Struct, containing details about the field. Again,

scale

scale(tag, x, y, xs, ys) Instance Public methods

new

new(model) Class Public methods

crosshairs_cget

crosshairs_cget(option) Instance Public methods

normalize_uri

normalize_uri(uri) Instance Public methods Normalize the URI by adding âhttp://â if it is missing.