Class: Accessor
- Inherits:
-
Object
- Object
- Accessor
- Defined in:
- lib/Accessor.rb
Overview
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
-
#aggregator ⇒ Object
Returns the value of attribute aggregator.
-
#config ⇒ Object
Returns the value of attribute config.
-
#db ⇒ Object
Returns the value of attribute db.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#path ⇒ Object
Returns the value of attribute path.
-
#renderer ⇒ Object
Returns the value of attribute renderer.
-
#setup ⇒ Object
Returns the value of attribute setup.
-
#stack ⇒ Object
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize ⇒ Accessor
constructor
A new instance of Accessor.
Constructor Details
#initialize ⇒ Accessor
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
#aggregator ⇒ Object
Returns the value of attribute aggregator.
17 18 19 |
# File 'lib/Accessor.rb', line 17 def aggregator @aggregator end |
#config ⇒ Object
Returns the value of attribute config.
13 14 15 |
# File 'lib/Accessor.rb', line 13 def config @config end |
#db ⇒ Object
Returns the value of attribute db.
15 16 17 |
# File 'lib/Accessor.rb', line 15 def db @db end |
#output_path ⇒ Object
Returns the value of attribute output_path.
20 21 22 |
# File 'lib/Accessor.rb', line 20 def output_path @output_path end |
#path ⇒ Object
Returns the value of attribute path.
19 20 21 |
# File 'lib/Accessor.rb', line 19 def path @path end |
#renderer ⇒ Object
Returns the value of attribute renderer.
18 19 20 |
# File 'lib/Accessor.rb', line 18 def renderer @renderer end |
#setup ⇒ Object
Returns the value of attribute setup.
14 15 16 |
# File 'lib/Accessor.rb', line 14 def setup @setup end |
#stack ⇒ Object
Returns the value of attribute stack.
16 17 18 |
# File 'lib/Accessor.rb', line 16 def stack @stack end |