From c001b601f7363347ec1ebb5c8977aef4036a8d51 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 11 May 2005 07:00:32 +0000 Subject: * eval.c (break_jump): break should not cross functions. [ruby-list:40818] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date.rb | 3 +++ lib/delegate.rb | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/date.rb b/lib/date.rb index 1cd4e0804..9d3319823 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -806,12 +806,15 @@ class Date # Get the minute of this date. def min() time[1] end + alias :minute :min # Get the second of this date. def sec() time[2] end + alias :second :sec # Get the fraction-of-a-second of this date. def sec_fraction() time[3] end + alias :second_fraction :sec_fraction private :hour, :min, :sec, :sec_fraction diff --git a/lib/delegate.rb b/lib/delegate.rb index bc200d212..b2e86de6a 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -16,11 +16,11 @@ # ... # end -class Delegator +class Delegator