Class: Accessor
- Inherits:
-
Object
- Object
- Accessor
- Defined in:
- lib/Accessor.rb
Overview
ACCESSOR
Access variables via one object to avoid polluting the caller class.
Only 2 variables are not accessed via Accessor:
- @reflection_counts on the instance
- @@reflekt_skipped_methods on the instance's singleton class
Instance Attribute Summary collapse
-
#db ⇒ Object
Returns the value of attribute db.
-
#json ⇒ Object
Returns the value of attribute json.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
-
#path ⇒ Object
Returns the value of attribute path.
-
#reflect_amount ⇒ Object
Returns the value of attribute reflect_amount.
-
#reflection_limit ⇒ Object
Returns the value of attribute reflection_limit.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#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.
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/Accessor.rb', line 23 def initialize() @setup = nil @db = nil @json = nil @stack = nil @rules = nil @path = nil @output_path = nil @reflect_amount = nil @reflection_limit = nil end |
Instance Attribute Details
#db ⇒ Object
Returns the value of attribute db.
14 15 16 |
# File 'lib/Accessor.rb', line 14 def db @db end |
#json ⇒ Object
Returns the value of attribute json.
15 16 17 |
# File 'lib/Accessor.rb', line 15 def json @json end |
#output_path ⇒ Object
Returns the value of attribute output_path.
19 20 21 |
# File 'lib/Accessor.rb', line 19 def output_path @output_path end |
#path ⇒ Object
Returns the value of attribute path.
18 19 20 |
# File 'lib/Accessor.rb', line 18 def path @path end |
#reflect_amount ⇒ Object
Returns the value of attribute reflect_amount.
20 21 22 |
# File 'lib/Accessor.rb', line 20 def reflect_amount @reflect_amount end |
#reflection_limit ⇒ Object
Returns the value of attribute reflection_limit.
21 22 23 |
# File 'lib/Accessor.rb', line 21 def reflection_limit @reflection_limit end |
#rules ⇒ Object
Returns the value of attribute rules.
17 18 19 |
# File 'lib/Accessor.rb', line 17 def rules @rules end |
#setup ⇒ Object
Returns the value of attribute setup.
13 14 15 |
# File 'lib/Accessor.rb', line 13 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 |