make

make(dest_path, results) Class Public methods

mktmpdir

mktmpdir(prefix_suffix=nil, *rest) Class Public methods ::mktmpdir creates a temporary directory. The directory is created with 0700 permission. Application should not change the permission to make the temporary directory accesible from other users. The prefix and suffix of the name of the directory is specified by the optional first argument, prefix_suffix. If it is not specified or nil, âdâ is used as the prefix and no suffix is used. If it is a string, it is used as the prefi

raise

raiseraise(string)raise(exception [, string [, array]]) Instance Public methods With no arguments, raises the exception in $! or raises a RuntimeError if $! is nil. With a single String argument, raises a RuntimeError with the string as a message. Otherwise, the first parameter should be the name of an Exception class (or an object that returns an Exception object when sent an exception message). The optional second parameter sets the message associated with the exception, and the

shape_get

shape_get(kind=nil) Instance Public methods

isutf8

String#isutf8 => true or false Instance Public methods Returns whether self's encoding is UTF-8 or not.

parameterize

parameterize(sep = '-') Instance Public methods Replaces special characters in a string so that it may be used as part of a 'pretty' URL. class Person def to_param "#{id}-#{name.parameterize}" end end @person = Person.find(1) # => #<Person id: 1, name: "Donald E. Knuth"> <%= link_to(@person.name, person_path) %> # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>

peeraddr

ipsocket.peeraddr([reverse_lookup]) => [address_family, port, hostname, numeric_address] Instance Public methods Returns the remote address as an array which contains address_family, port, hostname and numeric_address. It is defined for connection oriented socket such as TCPSocket. If reverse_lookup is true or :hostname, hostname is obtained from numeric_address using reverse lookup. Or if it is false, or :numeric, hostname is same as numeric_address. Or if it is nil or ommitte

delete

delete() Class Public methods

each_byte

ARGF.bytes {|byte| block } â ARGFARGF.bytes â an_enumeratorARGF.each_byte {|byte| block } â ARGFARGF.each_byte â an_enumerator Instance Public methods Iterates over each byte of each file in +ARGV+. A byte is returned as a +Fixnum+ in the range 0..255. This method allows you to treat the files supplied on the command line as a single file consisting of the concatenation of each named file. After the last byte of the first file has been

check_pkg

check_pkg(file, verbose=false) Instance Public methods