Class: Accessor

Inherits:
Object
  • Object
show all
Defined in:
lib/Accessor.rb

Overview

Note:

Some variables are not accessed via Accessor:

  • @reflekt_counts on the instance

  • @@reflekt_skipped_methods on the instance’s singleton class

Access variables via one object to avoid polluting the caller class scope.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAccessor

Returns a new instance of Accessor.



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/Accessor.rb', line 22

def initialize()

  @config = nil
  @setup = nil
  @db = nil
  @stack = nil
  @aggregator = nil
  @renderer = nil
  @path = nil
  @output_path = nil

end

Instance Attribute Details

#aggregatorObject

Returns the value of attribute aggregator.



17
18
19
# File 'lib/Accessor.rb', line 17

def aggregator
  @aggregator
end

#configObject

Returns the value of attribute config.



13
14
15
# File 'lib/Accessor.rb', line 13

def config
  @config
end

#dbObject

Returns the value of attribute db.



15
16
17
# File 'lib/Accessor.rb', line 15

def db
  @db
end

#output_pathObject

Returns the value of attribute output_path.



20
21
22
# File 'lib/Accessor.rb', line 20

def output_path
  @output_path
end

#pathObject

Returns the value of attribute path.



19
20
21
# File 'lib/Accessor.rb', line 19

def path
  @path
end

#rendererObject

Returns the value of attribute renderer.



18
19
20
# File 'lib/Accessor.rb', line 18

def renderer
  @renderer
end

#setupObject

Returns the value of attribute setup.



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

def setup
  @setup
end

#stackObject

Returns the value of attribute stack.



16
17
18
# File 'lib/Accessor.rb', line 16

def stack
  @stack
end