A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are trivially processed; REXML
doesn’t yet handle doctype entity declarations, so you have to parse them out yourself.
ignorable_whitespace
WARNING
These methods are certainly going to change, until DTDs are fully supported. Be aware of this.
start_document end_document doctype elementdecl attlistdecl entitydecl notationdecl cdata xmldecl comment
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are trivially processed; REXML
doesn’t yet handle doctype entity declarations, so you have to parse them out yourself.
When rubygems/test_case is required the default user interaction is a MockGemUi
.
Module
that defines the default UserInteraction
. Any class including this module will have access to the ui
method that returns the default UI.
UserInteraction
allows RubyGems to interact with the user through standard methods that can be replaced with more-specific UI methods for different displays.
Since UserInteraction
dispatches to a concrete UI class you may need to reference other classes for specific behavior such as Gem::ConsoleUI
or Gem::SilentUI
.
Example:
class X include Gem::UserInteraction def get_answer n = ask("What is the meaning of life?") end end
Creates a new EC::Group
object.
ec_method
is a symbol that represents an EC_METHOD. Currently the following are supported:
:GFp_simple
:GFp_mont
:GFp_nist
:GF2m_simple
If the first argument is :GFp or :GF2m, creates a new curve with given parameters.
See the OpenSSL
documentation for EC_POINT_*
Creates a new generic resource.
Creates a new DomainName
from name
.
Creates a new SOA
record. See the attr documentation for the details of each argument.
Creates a new HINFO
running os
on cpu
.
Creates a new MX
record with preference
, accepting mail at exchange
.