Module: LintFu::EidosContainer

Included in:
Plugins::Rails::ModelApplication
Defined in:
lib/lint_fu/eidos_container.rb

Overview

An element of a static analysis model that contains, or consists of, eide. For instance, an Application might consists of Models, Controllers and Views.

Instance Method Summary collapse

Instance Method Details

#add_eidos(sub) ⇒ Object



15
16
17
18
# File 'lib/lint_fu/eidos_container.rb', line 15

def add_eidos(sub)
  @eide ||= Set.new()
  @eide << sub
end

#each_eidos(&block) ⇒ Object



10
11
12
13
# File 'lib/lint_fu/eidos_container.rb', line 10

def each_eidos(&block)
  @eide ||= Set.new()
  @eide.each(&block)
end

#eideObject



5
6
7
8
# File 'lib/lint_fu/eidos_container.rb', line 5

def eide
  return [].freeze unless @eide
  @eide.dup.freeze
end

#remove_eidos(sub) ⇒ Object



20
21
22
23
# File 'lib/lint_fu/eidos_container.rb', line 20

def remove_eidos(sub)
  @eide ||= Set.new()
  @eide.delete sub
end