Returns true if the given calendar date is valid, and false if not.
Date.valid_date?(2001,2,3) #=> true Date.valid_date?(2001,2,29) #=> false
Returns self.
Returns a DateTime
object which denotes self.
Returns a Date
object which denotes self.
Returns self.
Returns a Date
object which denotes self.
Returns a DateTime
object which denotes self.
Returns true if this class can be used to create an instance from a serialised JSON
string. The class has to implement a class method json_create that expects a hash as first parameter. The hash should include the required data.
Returns garbage collector generation for the given object
.
class B include ObjectSpace def foo trace_object_allocations do obj = Object.new p "Generation is #{allocation_generation(obj)}" end end end B.new.foo #=> "Generation is 3"
See ::trace_object_allocations
for more information and examples.
Takes a hash as its argument. The key is a symbol or an array of symbols. These symbols correspond to method names. The value is the accessor to which the methods will be delegated.
How String Gem paths should be split. Overridable for esoteric platforms.
True if the gems in the system satisfy dependency
.
Downloads uri
to path
if necessary. If no path is given, it just passes the data.
Expire memoized instance variables that can incorrectly generate, replace or miss files due changes in certain attributes used to compute them.
Raises a MissingTagError
or NotExpectedTagError
if the element is not properly formatted.
Raises NotAvailableValueError
if element content is nil
Enumerates the outdated local gems yielding the local specification and the latest remote version.
This method may take some time to return as it must check each local gem against the server’s index.