Invokes the method identified by symbol, passing it any arguments specified. Unlike send, public_send
calls public methods only. When the method is identified by a string, the string is converted to a symbol.
1.public_send(:puts, "hello") # causes NoMethodError
Makes a list of existing constants public.
The BigDecimal.double_fig
class method returns the number of digits a Float
number is allowed to have. The result depends upon the CPU and OS in use.
Returns the methods available to this delegate object as the union of this object’s and _getobj_ public methods.
Returns true if the set is a proper superset of the given set.
Returns a Method
of superclass which would be called when super is used or nil if there is no method on superclass.
Returns a Method
of superclass which would be called when super is used or nil if there is no method on superclass.
Returns a hash that contains filename as key and coverage array as value.
A Gem::Version
for the currently running Ruby.
A Gem::Version
for the currently running RubyGems
Glob pattern for require-able path suffixes.
A wrapper around RUBY_ENGINE const that may not be defined
Indicates whether this DH
instance has a public key associated with it or not. The public key may be retrieved with DH#pub_key.
Indicates whether this DSA
instance has a public key associated with it or not. The public key may be retrieved with DSA#public_key
.
The return value is always true since every private key is also a public key.
Determines whether the response received was a Positive Completion reply (2xx reply code)