Sha256: ad7674cb55c7cac8b73e9ff42078b36a1a6b07d066c0129582ca69c68bca1d4a

Contents?: true

Size: 402 Bytes

Versions: 9

Compression:

Stored size: 402 Bytes

Contents

module Scrivito

#
# @api private
#
class ClassCollection
  include Enumerable

  def initialize(classes)
    @classes = classes
  end

  #
  # @!method each
  #   Iterates over the classes.
  #   @api private
  #   @yieldparam [Class] class if a block is given.
  #   @return [Enumerator] enumerator if no block is given.
  #
  delegate :each, to: :classes

  private

  attr_reader :classes
end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scrivito_sdk-0.50.1 lib/scrivito/class_collection.rb
scrivito_sdk-0.50.0 lib/scrivito/class_collection.rb
scrivito_sdk-0.50.0.rc2 lib/scrivito/class_collection.rb
scrivito_sdk-0.50.0.rc1 lib/scrivito/class_collection.rb
scrivito_sdk-0.42.1 lib/scrivito/class_collection.rb
scrivito_sdk-0.42.1.rc3 lib/scrivito/class_collection.rb
scrivito_sdk-0.42.1.rc2 lib/scrivito/class_collection.rb
scrivito_sdk-0.42.1.rc1 lib/scrivito/class_collection.rb
scrivito_sdk-0.42.0 lib/scrivito/class_collection.rb