range

range(first, last) Instance Public methods

uninstall_cmd

uninstall_cmd(id, local_cmdtbl=nil) Class Public methods

each

each() Instance Public methods Iterates over each attribute of an Element, yielding the expanded name and value as a pair of Strings. doc = Document.new '<a x="1" y="2"/>' doc.root.attributes.each {|name, value| p name+" => "+value }

select

select( &block )select( *keys ) Instance Public methods If a block is provided, returns a new array containing [key, value] pairs for which the block returns true. Otherwise, same as values_at

CSV

CSV(*args, &block) Instance Public methods Passes args to CSV.instance. CSV("CSV,data").read #=> [["CSV", "data"]] If a block is given, the instance is passed the block and the return value becomes the return value of the block. CSV("CSV,data") { |c| c.read.any? { |a| a.include?("data") } } #=> true CSV("CSV,data") { |c| c.read.any? { |a| a.include?("zombies") } } #=> false

vrootheight

vrootheight(win) Class Public methods

==

digest_obj == another_digest_obj â booleandigest_obj == string â boolean Instance Public methods If a string is given, checks whether it is equal to the hex-encoded hash value of the digest object. If another digest instance is given, checks whether they have the same hash value. Otherwise returns false.

empty?

empty?() Instance Public methods Is the tar entry empty?

inherited

inherited(subclass) Class Public methods

locking_enabled?

locking_enabled?() Instance Public methods Returns true if the lock_optimistically flag is set to true (which it is, by default) and the table includes the locking_column column (defaults to lock_version).