Results for: "Pathname"

Defines a named attribute for this module, where the name is symbol.id2name, creating an instance variable (@name) and a corresponding access method to read it. Also creates a method called name= to set the attribute. String arguments are converted to symbols. Returns an array of defined method names as symbols.

module Mod
  attr_accessor(:one, :two) #=> [:one, :one=, :two, :two=]
end
Mod.instance_methods.sort   #=> [:one, :one=, :two, :two=]

Makes a list of existing constants private.

Makes a list of existing constants deprecated. Attempt to refer to them will produce a warning.

module HTTP
  NotFound = Exception.new
  NOT_FOUND = NotFound # previous version of the library used this name

  deprecate_constant :NOT_FOUND
end

HTTP::NOT_FOUND
# warning: constant HTTP::NOT_FOUND is deprecated

Import a JSON Marshalled object.

method used for JSON marshalling support.

Deserializes JSON string by converting numerator value n, denominator value d, to a Rational object.

Returns true if the given ordinal date is valid, and false if not.

Date.valid_ordinal?(2001,34)      #=> true
Date.valid_ordinal?(2001,366)     #=> false

See also ::jd and ::ordinal.

Returns true if the given calendar date is valid, and false if not. Valid in this context is whether the arguments passed to this method would be accepted by ::new.

Date.valid_date?(2001,2,3)        #=> true
Date.valid_date?(2001,2,29)       #=> false
Date.valid_date?(2001,2,-1)       #=> true

See also ::jd and ::civil.

Returns true if the given week date is valid, and false if not.

Date.valid_commercial?(2001,5,6)  #=> true
Date.valid_commercial?(2001,5,8)  #=> false

See also ::jd and ::commercial.

No documentation available
No documentation available

This method is equivalent to d >> n.

See Date#>> for examples.

This method is equivalent to d << n.

See Date#<< for examples.

Returns a Time object which denotes self. If self is a julian date, convert it to a gregorian date before converting it to Time.

Returns self.

No documentation available
No documentation available

Deserializes JSON string by converting Julian year y, month m, day d and Day of Calendar Reform sg to Date.

No documentation available

Returns a Time object which denotes self.

Returns a Date object which denotes self.

Deserializes JSON string by converting year y, month m, day d, hour H, minute M, second S, offset of and Day of Calendar Reform sg to DateTime.

Returns self.

Returns a Date object which denotes self.

Deserializes JSON string by converting time since epoch to Time

No documentation available
Search took: 5ms  ·  Total Results: 2230