unshift

unshift( object ) Instance Public methods

member?

rng.member?(obj) â true or false Instance Public methods Returns true if obj is an element of the range, false otherwise. If begin and end are numeric, comparison is done according to the magnitude of the values. ("a".."z").include?("g") #=> true ("a".."z").include?("A") #=> false ("a".."z").include?("cc") #=> false

load_tasks

load_tasks(app=self) Instance Public methods Load Rake, railties tasks and invoke the registered hooks. Check Rails::Railtie.rake_tasks for more info.

favicon_link_tag

favicon_link_tag(source='favicon.ico', options={}) Instance Public methods Returns a link loading a favicon file. You may specify a different file in the first argument. The helper accepts an additional options hash where you can override ârelâ and âtypeâ. Options :rel - Specify the relation of this link, defaults to 'shortcut icon' :type - Override the auto-generated mime type, defaults to 'image/vnd.microsoft.icon' Examples favicon_link_tag 'myicon.ico' # => <link

world_readable?

File.world_readable?(file_name) â fixnum or nil Instance 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"

id2obj

id2obj(lbox, id) Class Public methods

one?

enum.one? [{ |obj| block }] â true or false Instance Public methods Passes each element of the collection to the given block. The method returns true if the block returns true exactly once. If the block is not given, one? will return true only if exactly one of the collection members is true. %w{ant bear cat}.one? { |word| word.length == 4 } #=> true %w{ant bear cat}.one? { |word| word.length > 4 } #=> false %w{ant bear cat}.one? { |word| word.length < 4 } #=>

new

new(server, name) Class Public methods Creates a new CGI script servlet for the script at name

inspect

inspect() Instance Public methods

readme

readme() Instance Public methods