files

files() Instance Public methods Files included in this gem. You cannot append to this accessor, you must assign to it. Only add files you can require to this list, not directories, etc. Directories are automatically stripped from this list when building a gem, other non-files cause an error. Usage: require 'rake' spec.files = FileList['lib .rb', 'bin/*', '[A-Z]*', 'test/ *'].to_a # or without Rake... spec.fil

write

write(data) Instance Public methods Writes data to the underlying IO and updates the digests

skip_around_action

skip_around_action(names) Instance Public methods Skip a callback around actions. See #_insert_callbacks for parameter details. Aliased as skip_around_filter.

size

size(master) Class Public methods

main_type

main_type() Instance Public methods Returns a content type string such as âtextâ. This method returns nil if Content-Type: header field does not exist.

capture2

capture2(*cmd) Class Public methods ::capture2 captures the standard output of a command. stdout_str, status = Open3.capture2([env,] cmd... [, opts]) The arguments env, cmd and opts are passed to ::popen3 except opts and opts. See Process.spawn. If opts is specified, it is sent to the command's standard input. If opts is true, internal pipes are set to binary mode. Example: # factor is a command for integer factorization. o, s = Open3.capture2("factor", :stdin_data=>"42") p o #

ancestors

ancestors() Instance Public methods Ancestors list for this ClassModule: the list of included modules (classes will add their superclass if any). Returns the included classes or modules, not the includes themselves. The returned values are either String or RDoc::NormalModule instances (see RDoc::Include#module). The values are returned in reverse order of their inclusion, which is the order suitable for searching methods/attributes in the ancestors. The superclass, if any, comes la

parse_ctype

parse_ctype(ty, tymap=nil) Instance Public methods Given a String of C type ty, returns the corresponding Fiddle constant. ty can also accept an Array of C type Strings, and will be returned in a corresponding Array. If Hash tymap is provided, ty is expected to be the key, and the value will be the C type to be looked up. Example: include Fiddle::CParser #=> Object parse_ctype('int') #=> Fiddle::TYPE_INT parse_ctype('double') #=> Fiddle::TYPE_DOUBLE parse_ctype('u

call

call(env) Instance Public methods Since the IP address may not be needed, we store the object here without calculating the IP to keep from slowing down the majority of requests. For those requests that do need to know the IP, the ActionDispatch::RemoteIp::GetIp#calculate_ip method will calculate the memoized client IP address.

try!

try!(*args) Instance Public methods