Class: Documented::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/config.rb', line 9

def initialize()
  @blocklist = [
    '#<Class:Bundler',
    '#<Class:Documented>',
    '#<Class:#<Class',
    '#<Class:0x0000',
    '#<Class:Cucumber',
    '#<Class:JSON>',
    '#<Class:Net::',
    '#<Class:Time',
    '#<Class:URI::Generic>',
    '#<Class:URI>',
    '#<Module',
    '#<refinement',
    'BasicSocket',
    'Bundler',
    'Cucumber',
    'Datadog',
    'Documented',
    'Float',
    'Helpers',
    'Integer',
    'Kernel',
    'Net::',
    'NilClass',
    'Set',
    'Thread',
    'Timeout::Request',
    'TracePoint',
    'URI::',
    'URI::Generic',
  ]

  @duplicates = false

  @app_path = Dir.pwd
  @gem_path = File.dirname(File.realpath(__FILE__))

  @output_directory = "documented"
end

Instance Attribute Details

#app_pathObject

Returns the value of attribute app_path.



5
6
7
# File 'lib/config.rb', line 5

def app_path
  @app_path
end

#blocklistObject

Returns the value of attribute blocklist.



3
4
5
# File 'lib/config.rb', line 3

def blocklist
  @blocklist
end

#duplicatesObject

Returns the value of attribute duplicates.



4
5
6
# File 'lib/config.rb', line 4

def duplicates
  @duplicates
end

#gem_pathObject

Returns the value of attribute gem_path.



6
7
8
# File 'lib/config.rb', line 6

def gem_path
  @gem_path
end

#output_directoryObject

Returns the value of attribute output_directory.



7
8
9
# File 'lib/config.rb', line 7

def output_directory
  @output_directory
end