Sha256: eb1581a030619ecf2491dea2f710c7f677df74df1b6523b5333e5b574e9d3d59

Contents?: true

Size: 240 Bytes

Versions: 168

Compression:

Stored size: 240 Bytes

Contents

class Object

  # Returns the Enumerator class (either Enumerator or Enumerable::Enumerator)
  # depending of the version.
  #
  def enumerator_class
    SpecVersion.new(RUBY_VERSION) < "1.9" ? Enumerable::Enumerator : Enumerator
  end
end

Version data entries

168 entries across 144 versions & 3 rubygems

Version Path
rhodes-5.5.18 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
mspec-1.9.1 lib/mspec/helpers/enumerator_class.rb
mspec-1.9.0 lib/mspec/helpers/enumerator_class.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
mspec-1.8.0 lib/mspec/helpers/enumerator_class.rb
mspec-1.7.0 lib/mspec/helpers/enumerator_class.rb
mspec-1.6.0 lib/mspec/helpers/enumerator_class.rb
mspec-1.5.21 lib/mspec/helpers/enumerator_class.rb
mspec-1.5.20 lib/mspec/helpers/enumerator_class.rb
mspec-1.5.19 lib/mspec/helpers/enumerator_class.rb
mspec-1.5.18 lib/mspec/helpers/enumerator_class.rb