parse

parse(uri) Class Public methods Synopsis URI::parse(uri_str) Args uri_str String with URI. Description Creates one of the URI's subclasses instance from the string. Raises URI::InvalidURIError Raised if URI given is not a correct one. Usage require 'uri' uri = URI.parse("http://www.ruby-lang.org/") p uri # => #<URI::HTTP:0x202281be URL:http://www.ruby-lang.org/> p uri.scheme # => "http" p uri.host # => "www.ruby-lang.org"

size

size(master) Class Public methods

to_feed

to_feed(rss) Instance Public methods

thread_list

thread_list(num) Class Public methods

zero?

zero?() Instance Public methods Returns True if the value is zero.

benchmark

benchmark(message = "Benchmarking", options = {}) Instance Public methods Allows you to measure the execution time of a block in a template and records the result to the log. Wrap this block around expensive operations or possible bottlenecks to get a time reading for the operation. For example, let's say you thought your file processing method was taking too long; you could wrap it in a benchmark block. <% benchmark 'Process data files' do %> <%= expensive_files_operati

raise

raise(tag, above=nil) Instance Public methods

textarea

textarea(name = "", cols = 70, rows = 10) Instance Public methods Generate a TextArea element, as a String. name is the name of the textarea. cols is the number of columns and rows is the number of rows in the display. Alternatively, the attributes can be specified as a hash. The body is provided by the passed-in no-argument block textarea("name") # = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10) textarea("name", 40, 5) # = textarea("NAME" => "name", "C

inspect

inspect() Class Public methods

insertData

insertData(arg0, arg1) Instance Public methods VOID insertData insert string into value I4 arg0 --- offset [IN] BSTR arg1 --- data [IN]