Module: TZInfo::RubyCoreSupport

Defined in:
activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb

Overview

Methods to support different versions of Ruby.

Class Method Summary (collapse)

Class Method Details

+ (Object) datetime_new!(ajd = 0, of = 0, sg = Date::ITALY)



47
48
49
# File 'activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb', line 47

def self.datetime_new!(ajd = 0, of = 0, sg = Date::ITALY)
  DateTime.new!(ajd, of, sg)
end

+ (Object) rational_new!(numerator, denominator = 1)



34
35
36
# File 'activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/ruby_core_support.rb', line 34

def self.rational_new!(numerator, denominator = 1)
  Rational.new!(numerator, denominator)
end