Sha256: 9acf26182435d749904e50f914e427b2832aed56a92a2c79756e610e53851acf

Contents?: true

Size: 270 Bytes

Versions: 21

Compression:

Stored size: 270 Bytes

Contents

module ActiveSupport #:nodoc:
  module CoreExtensions #:nodoc:
    module Range #:nodoc:
      # Check if Ranges overlap.
      module Overlaps
        def overlaps?(other)
          include?(other.first) || other.include?(first)
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
activesupport-2.0.1 lib/active_support/core_ext/range/overlaps.rb
activesupport-2.0.0 lib/active_support/core_ext/range/overlaps.rb
activesupport-2.0.4 lib/active_support/core_ext/range/overlaps.rb
activesupport-2.0.5 lib/active_support/core_ext/range/overlaps.rb
activesupport-2.0.2 lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.5.1 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.5 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.7 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.6 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.9 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
radiant-0.6.8 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
spree-0.0.9 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
spree-0.2.0 vendor/rails/activesupport/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.149 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.150 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.152 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.155 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.156 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.160 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb
swivel-0.0.175 vendor/activesupport-2.0.2-/lib/active_support/core_ext/range/overlaps.rb