Class: Pageflow::RevisionComponents

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/pageflow/revision_components.rb

Instance Method Summary collapse

Constructor Details

#initializeRevisionComponents

Returns a new instance of RevisionComponents.



5
6
7
# File 'lib/pageflow/revision_components.rb', line 5

def initialize
  @revision_components = []
end

Instance Method Details

#each(&block) ⇒ Object



14
15
16
# File 'lib/pageflow/revision_components.rb', line 14

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

#register(revision_component) ⇒ Object



9
10
11
12
# File 'lib/pageflow/revision_components.rb', line 9

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