Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
Removes all installed gems from +@gemhome+.
Set
the platform to arch
Allows the proper version of rake
to be used for the test.
Parses the cookie in str
Parses the cookies in str
Parses a C struct’s members
Example:
require 'fiddle/import' include Fiddle::CParser #=> Object parse_struct_signature(['int i', 'char c']) #=> [[Fiddle::TYPE_INT, Fiddle::TYPE_CHAR], ["i", "c"]] parse_struct_signature(['char buffer[80]']) #=> [[[Fiddle::TYPE_CHAR, 80]], ["buffer"]]
Reads bytes from filename and adds them to the PRNG.
Writes a number of random generated bytes (currently 1024) to filename which can be used to initialize the PRNG by calling ::load_random_file
in a later session.
Yields to a block and preserves the previous set of objects being printed.
Returns the position that self
holds in its parent’s array, indexed from 1.
Extract the first name=“value” pair from content. Works with single quotes according to the constant CONTENT_PATTERN
. Return a Hash
.
This method is used inside of several different objects to determine if special behavior is needed in the constructor.
Special behavior is needed if the array passed in as args
has true
or false
as its value, and if the second element of args
is a hash.
Parses form data in io
with the given boundary
Parses form data in io
with the given boundary