|

false | obj â true or falsenil | obj â true or false Instance Public methods OrâReturns false if obj is nil or false; true otherwise.

set_translation_list 2

set_translation_list(locale, trans_list, enc='utf-8') Instance Public methods

as_json

as_json(*) Instance Public methods Returns a hash, that will be turned into a JSON object and represent this object.

newest

newest() Instance Public methods

readable_inspect

readable_inspect() Instance Public methods Overrides the default inspect method with a human readable one, e.g., âMon, 21 Feb 2005â inspect

text?

text?() Instance Public methods Is this TopLevel from a text file instead of a source code file?

has_mainwindow? 2

has_mainwindow?() Instance Public methods

httpd

httpd() Instance Public methods Run WEBrick HTTP server. ruby -run -e httpd -- [OPTION] DocumentRoot --bind-address=ADDR address to bind --port=NUM listening port number --max-clients=MAX max number of simultaneous clients --temp-dir=DIR temporary directory --do-not-reverse-lookup disable reverse lookup --request-timeout=SECOND request timeout in seconds --http-version=VERSION HTTP version -v verb

each

each(element, path=nil, namespaces=nil, variables={}) Class Public methods Iterates over nodes that match the given path, calling the supplied block with the match. element The context element path The xpath to search for. If not supplied or nil, defaults to '*' namespaces If supplied, a Hash which defines a namespace mapping variables If supplied, a Hash which maps $variables in the query to values. This can be used to avoid XPath injection attacks or to automatically

sanitize_sql_hash

sanitize_sql_hash(attrs, default_table_name = self.table_name) Instance Protected methods Alias for: sanitize_sql_hash_for_conditions