Writes out text, substituting special characters beforehand. out
A String
, IO
, or any other object supporting <<( String
) input
the text to substitute and the write out
z=utf8.unpack("U*") ascOut="" z.each{|r| if r < 0x100 ascOut.concat(r.chr) else ascOut.concat(sprintf("&#x%x;", r)) end } puts ascOut
record class_name
for the supplied uri and tag_name
set the accessor for the uri, tag_name pair
The name of the configuration file.
The path where installed executables live
Creates the following instance variables:
a spec named ‘a’, intended for regular installs
the path to a built gem from @spec
And returns a Gem::Installer
for the @spec that installs into @gemhome
Sets up the base @gem, builds it and returns an installer for it.
Extracts S3 configuration for S3 bucket
Install the provided default specs
Sets the content type in an HTTP
header. The type
should be a full HTTP
content type, e.g. “text/html”. The params
are an optional Hash
of parameters to add after the content type, e.g. {‘charset’ => ‘iso-8859-1’}
Set
the entity expansion limit. By default the limit is set to 10000.
Get the entity expansion limit. By default the limit is set to 10000.
Extract the first name=“value” pair from content. Works with single quotes according to the constant CONTENT_PATTERN
. Return a Hash
.
The column number in the source code where this AST’s text began.
The column number in the source code where this AST’s text ended.
Removes sessions in the internal cache that have expired at time.