Sha256: 3ecb921516a6a4807218d703f28b04ded4856ae5dd11771a9065e0049546b76f

Contents?: true

Size: 366 Bytes

Versions: 27

Compression:

Stored size: 366 Bytes

Contents

module Pageflow
  class RevisionComponents
    include Enumerable

    def initialize
      @revision_components = []
    end

    def register(revision_component)
      @revision_components << revision_component unless
        @revision_components.include?(revision_component)
    end

    def each(&block)
      @revision_components.each(&block)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pageflow-17.0.4 lib/pageflow/revision_components.rb
pageflow-17.0.3 lib/pageflow/revision_components.rb
pageflow-17.0.2 lib/pageflow/revision_components.rb
pageflow-17.0.1 lib/pageflow/revision_components.rb
pageflow-17.0.0 lib/pageflow/revision_components.rb
pageflow-16.2.0 lib/pageflow/revision_components.rb
pageflow-16.1.0 lib/pageflow/revision_components.rb
pageflow-16.0.0 lib/pageflow/revision_components.rb
pageflow-15.8.0 lib/pageflow/revision_components.rb
pageflow-15.7.1 lib/pageflow/revision_components.rb
pageflow-15.7.0 lib/pageflow/revision_components.rb
pageflow-15.6.1 lib/pageflow/revision_components.rb
pageflow-15.6.0 lib/pageflow/revision_components.rb
pageflow-15.5.0 lib/pageflow/revision_components.rb
pageflow-15.4.0 lib/pageflow/revision_components.rb
pageflow-15.3.0 lib/pageflow/revision_components.rb
pageflow-15.2.2 lib/pageflow/revision_components.rb
pageflow-15.2.1 lib/pageflow/revision_components.rb
pageflow-15.2.0 lib/pageflow/revision_components.rb
pageflow-15.1.2 lib/pageflow/revision_components.rb