diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-30 05:05:19 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-03-30 05:05:19 +0000 |
commit | 316906cbbb529839c2ffa3f37a010193f7722352 (patch) | |
tree | f25c83181472760bcd8c21981bc37eb6b9fa2cb0 /actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb | |
parent | f66bbf5ed0504a1514a16f0802e3455655b609b5 (diff) | |
download | rails-316906cbbb529839c2ffa3f37a010193f7722352.tar.gz rails-316906cbbb529839c2ffa3f37a010193f7722352.tar.bz2 rails-316906cbbb529839c2ffa3f37a010193f7722352.zip |
Merge in latest tmail trunk r241
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9144 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb b/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb index 9d2aa83798..1275df79a6 100644 --- a/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb +++ b/actionmailer/lib/action_mailer/vendor/tmail-1.2.2/tmail/compat.rb @@ -1,17 +1,18 @@ -unless Enumerable.method_defined?(:map) - module Enumerable +#:stopdoc: +unless Enumerable.method_defined?(:map) + module Enumerable #:nodoc: alias map collect end end unless Enumerable.method_defined?(:select) - module Enumerable + module Enumerable #:nodoc: alias select find_all end end unless Enumerable.method_defined?(:reject) - module Enumerable + module Enumerable #:nodoc: def reject result = [] each do |i| @@ -23,7 +24,7 @@ unless Enumerable.method_defined?(:reject) end unless Enumerable.method_defined?(:sort_by) - module Enumerable + module Enumerable #:nodoc: def sort_by map {|i| [yield(i), i] }.sort.map {|val, i| i } end @@ -31,9 +32,10 @@ unless Enumerable.method_defined?(:sort_by) end unless File.respond_to?(:read) - def File.read(fname) + def File.read(fname) #:nodoc: File.open(fname) {|f| return f.read } end end +#:startdoc:
\ No newline at end of file |