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-3.1.0.beta.3 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.1.0.beta.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.1.0.beta.1 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.2.beta.1 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.8 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.7 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.6 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.5 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.4 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.3 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.1.beta.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.7 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.6 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.5 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.4 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.3 lib/extensions/mspec/mspec/helpers/enumerator_class.rb
rhodes-3.0.0.beta.2 lib/extensions/mspec/mspec/helpers/enumerator_class.rb