Sha256: df5232c3bf0023c8e9e7b163ab12ada320a32d830060a5629be7a373d05fddc1

Contents?: true

Size: 724 Bytes

Versions: 134

Compression:

Stored size: 724 Bytes

Contents

#:stopdoc:
unless Enumerable.method_defined?(:map) 
  module Enumerable #:nodoc:
    alias map collect
  end
end

unless Enumerable.method_defined?(:select)
  module Enumerable #:nodoc:
    alias select find_all
  end
end

unless Enumerable.method_defined?(:reject)
  module Enumerable #:nodoc:
    def reject
      result = []
      each do |i|
        result.push i unless yield(i)
      end
      result
    end
  end
end

unless Enumerable.method_defined?(:sort_by)
  module Enumerable #:nodoc:
    def sort_by
      map {|i| [yield(i), i] }.sort.map {|val, i| i }
    end
  end
end

unless File.respond_to?(:read)
  def File.read(fname) #:nodoc:
    File.open(fname) {|f|
      return f.read
    }
  end
end
#:startdoc:

Version data entries

134 entries across 131 versions & 31 rubygems

Version Path
ginst-2.0.0 vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
gemstreamer-1.2.0 spec/assets/testapp/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
gemstreamer-1.1.1 spec/assets/testapp/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
gemstreamer-0.0.0 spec/assets/testapp/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
radiant-rc-0.9.0 vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.2.3 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
webroar-0.2.2 src/admin_panel/vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
radiant-0.8.1 vendor/rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.3.4 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
daemon-kit-0.1.7.10 vendor/tmail-1.2.3/tmail/compat.rb
daemon-kit-0.1.7.7 vendor/tmail-1.2.3/tmail/compat.rb
daemon-kit-0.1.7.8 vendor/tmail-1.2.3/tmail/compat.rb
daemon-kit-0.1.7.9 vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.3.3 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.1.2 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.3.2 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.1.0 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb
actionmailer-2.1.1 lib/action_mailer/vendor/tmail-1.2.3/tmail/compat.rb