Class: Accessor

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeAccessor

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

#dbObject

Returns the value of attribute db.



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

def db
  @db
end

#jsonObject

Returns the value of attribute json.



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

def json
  @json
end

#output_pathObject

Returns the value of attribute output_path.



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

def output_path
  @output_path
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#reflect_amountObject

Returns the value of attribute reflect_amount.



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

def reflect_amount
  @reflect_amount
end

#reflection_limitObject

Returns the value of attribute reflection_limit.



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

def reflection_limit
  @reflection_limit
end

#rulesObject

Returns the value of attribute rules.



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

def rules
  @rules
end

#setupObject

Returns the value of attribute setup.



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

def setup
  @setup
end

#stackObject

Returns the value of attribute stack.



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

def stack
  @stack
end