1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/date/delta.rb: removed require 'date'. added to_c.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2009-08-17 14:46:55 +00:00
parent b5e6b46e90
commit a5aefa661e
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Aug 17 23:45:40 2009 Tadayoshi Funaba <tadf@dotrb.org>
* lib/date/delta.rb: removed require 'date'. added to_c.
Mon Aug 17 14:35:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):

View file

@ -1,6 +1,5 @@
# delta.rb: Written by Tadayoshi Funaba 2004-2009
require 'date'
require 'date/delta/parser'
class Date
@ -375,6 +374,7 @@ class Date
def to_i() dx_conv0(:to_i) end
def to_f() dx_conv0(:to_f) end
def to_r() dx_conv0(:to_r) end
def to_c() @delta end
alias_method :to_int, :to_i