Returns an array of the names of the constants accessible in mod. This includes the names of constants in any included modules (example at start of section), unless the inherit parameter is set to false
.
The implementation makes no guarantees about the order in which the constants are yielded.
IO.constants.include?(:SYNC) #=> true IO.constants(false).include?(:SYNC) #=> false
Also see Module#const_defined?
.
Create a new EmbeddedStatementsNode
node.
Create a new RegularExpressionNode
node.
Retrieve the value of one of the RegularExpressionFlags
flags.
Deprecation method to deprecate Rubygems commands
Deprecation method to deprecate Rubygems commands
Creates an RubyGems API to host
and path
with the given HTTP method
.
If allowed_push_host
metadata is present, then it will only allow that host.
Add the –prerelease option to the option parser.
Returns whether the response may have a body:
Net::HTTP::Post.new(uri).response_body_permitted? # => true Net::HTTP::Head.new(uri).response_body_permitted? # => false
Save the content_loc
location using the given saved source so that it can be retrieved later.
Save the content_loc
location using the given saved source so that it can be retrieved later.
Save the content_loc
location using the given saved source so that it can be retrieved later.
Save the content_loc
location using the given saved source so that it can be retrieved later.