Module: TZInfo::RubyCoreSupport

Defined in:
lib/gems/activesupport-2.2.2/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

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



47
48
49
# File 'lib/gems/activesupport-2.2.2/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

.rational_new!(numerator, denominator = 1) ⇒ Object



34
35
36
# File 'lib/gems/activesupport-2.2.2/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