[]=

[]=( name, value ) Instance Public methods Sets an attribute, overwriting any existing attribute value by the same name. Namespace is significant. name the name of the attribute value (optional) If supplied, the value of the attribute. If nil, any existing matching attribute is deleted. Returns Owning element doc = Document.new "<a x:foo='1' foo='3'/>" doc.root.attributes['y:foo'] = '2' doc.root.attributes['foo'] = '4' doc.root.attributes['x:foo'] = nil

split

split(uri) Class Public methods Synopsis URI::split(uri) Args uri String with URI. Description Splits the string on following parts and returns array with result: * Scheme * Userinfo * Host * Port * Registry * Path * Opaque * Query * Fragment Usage require 'uri' p URI.split("http://www.ruby-lang.org/") # => ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]

handle_pipe

handle_pipe() Instance Public methods Turns RDoc from stdin into HTML

shelljoin

shelljoin(array) Class Public methods Builds a command line string from an argument list, array. All elements are joined into a single string with fields separated by a space, where each element is escaped for Bourne shell and stringified using to_s. ary = ["There's", "a", "time", "and", "place", "for", "everything"] argv = Shellwords.join(ary) argv #=> "There\\'s a time and place for everything" Array#shelljoin is a shortcut for this function. ary = ["Don't", "rock", "the", "b

selection_present

selection_present() Instance Public methods

mouseinterval

mouseinterval(interval) Class Public methods The ::mouseinterval function sets the maximum time (in thousands of a second) that can elapse between press and release events for them to be recognized as a click. Use ::mouseinterval to disable click resolution. This function returns the previous interval value. Use ::mouseinterval to obtain the interval without altering it. The default is one sixth of a second.

insertData

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

restsize

restsize() Instance Public methods s.restsize is equivalent to s.rest_size. This method is obsolete; use rest_size instead.

reset_cache

reset_cache() Class Public methods

all

all() Instance Public methods Returns an ActiveRecord::Relation scope object. posts = Post.all posts.size # Fires "select count(*) from posts" and returns the count posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects fruits = Fruit.all fruits = fruits.where(color: 'red') if options[:red_only] fruits = fruits.limit(10) if limited? You can define a scope that applies to all finders using ActiveRecord::Base.default_scope.