get_print

get_print(uri_or_host, path = nil, port = nil) Class Public methods Gets the body text from the target and outputs it to $stdout. The target can either be specified as (uri), or as (host, path, port = 80); so: Net::HTTP.get_print URI('http://www.example.com/index.html') or: Net::HTTP.get_print 'www.example.com', '/index.html'

define_method_attribute=

define_method_attribute=(attr_name) Instance Protected methods Defined for all datetime and timestamp attributes when time_zone_aware_attributes are enabled. This enhanced write method will automatically convert the time passed to it to the zone stored in Time.zone.

world_readable?

File.world_readable?(file_name) â fixnum or nil Class Public methods If file_name is readable by others, returns an integer representing the file permission bits of file_name. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2). file_name can be an IO object. File.world_readable?("/etc/passwd") #=> 420 m = File.world_readable?("/etc/passwd") sprintf("%o", m) #=> "644"

insert

insert(idx, tag=nil, keys={}) Instance Public methods

mattr_reader

mattr_reader(*syms) Instance Public methods Defines a class attribute and creates a class and instance reader methods. The underlying the class variable is set to nil, if it is not previously defined. module HairColors mattr_reader :hair_colors end HairColors.hair_colors # => nil HairColors.class_variable_set("@@hair_colors", [:brown, :black]) HairColors.hair_colors # => [:brown, :black] The attribute name must be a valid method name in Ruby. module Foo mattr_reader :"1

_set_global_var2

_set_global_var2(p1, p2, p3) Instance Public methods

permutation

ary.permutation { |p| block } â aryary.permutation â Enumeratorary.permutation(n) { |p| block } â aryary.permutation(n) â Enumerator Instance Public methods When invoked with a block, yield all permutations of length n of the elements of the array, then return the array itself. If n is not specified, yield all permutations of all elements. The implementation makes no guarantees about the order in which the permutations are

previousSibling

previousSibling() Instance Public methods IXMLDOMNode previousSibling left sibling of the node

parse_range_header

parse_range_header(ranges_specifier) Class Public methods Parses a Range header value ranges_specifier

match

match(tuple) Instance Public methods Matches this template against tuple. The tuple must be the same size as the template. An element with a nil value in a template acts as a wildcard, matching any value in the corresponding position in the tuple. Elements of the template match the tuple if the are #== or ===. Template.new([:foo, 5]).match Tuple.new([:foo, 5]) # => true Template.new([:foo, nil]).match Tuple.new([:foo, 5]) # => true Template.new([String]).match Tuple.n