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-15.1.1 lib/pageflow/revision_components.rb
pageflow-15.1.0 lib/pageflow/revision_components.rb
pageflow-15.1.0.rc0 lib/pageflow/revision_components.rb
pageflow-15.1.0.beta6 lib/pageflow/revision_components.rb
pageflow-15.1.0.beta5 lib/pageflow/revision_components.rb
pageflow-15.1.0.beta4 lib/pageflow/revision_components.rb
pageflow-15.1.0.beta3 lib/pageflow/revision_components.rb