domain

domain(tld_length = @@tld_length) Instance Public methods Returns the domain part of a host, such as ârubyonrails.orgâ in âwww.rubyonrails.orgâ. You can specify a different tld_length, such as 2 to catch rubyonrails.co.uk in âwww.rubyonrails.co.ukâ.

ungetbyte

ios.ungetbyte(string) â nilios.ungetbyte(integer) â nil Instance Public methods Pushes back bytes (passed as a parameter) onto ios, such that a subsequent buffered read will return it. Only one byte may be pushed back before a subsequent read operation (that is, you will be able to read only the last of several bytes that have been pushed back). Has no effect with unbuffered reads (such as IO#sysread). f = File.new("testfile") #=> #<File:testfile> b = f.getbyte

find_proxy

find_proxy() Instance Public methods returns a proxy URI. The proxy URI is obtained from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. If there is no proper proxy, nil is returned. Note that capitalized variables (HTTP_PROXY, FTP_PROXY, NO_PROXY, etc.) are examined too. But http_proxy and HTTP_PROXY is treated specially under CGI environment. It's because HTTP_PROXY may be set by Proxy: header. So HTTP_PROXY is not used. http_proxy is not used too if the varia

parse

parse(accept_header) Class Public methods

assert_instance_method

assert_instance_method(method, content) Instance Public methods Asserts the given method exists in the given content. When a block is given, it yields the content of the method. assert_file "app/controllers/products_controller.rb" do |controller| assert_instance_method :index, controller do |index| assert_match(/Product\.all/, index) end end assert_method

current_window_configinfo

current_window_configinfo(tagOrId, slot=nil) Instance Public methods

namespaced_path

namespaced_path() Instance Protected methods

create_dynamically_linked

create_dynamically_linked(nmf, exe) Instance Public methods

camelize

camelize(first_letter = :upper) Instance Public methods By default, camelize converts strings to UpperCamelCase. If the argument to camelize is set to :lower then camelize produces lowerCamelCase. camelize will also convert '/' to '::' which is useful for converting paths to namespaces. 'active_record'.camelize # => "ActiveRecord" 'active_record'.camelize(:lower) # => "activeRecord" 'active_record/errors'.camelize # => "ActiveRecord::Errors" '

call

call(*args, &blk) Class Public methods Alias for: eval_proc