Class: Base

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

Constant Summary collapse

@@paths_set =
false

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#set_pathsObject (readonly)

Returns the value of attribute set_paths.



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

def set_paths
  @set_paths
end

Class Method Details

.set_pathsObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/whos_using_what/base.rb', line 7

def self.set_paths
  $:.unshift(File.expand_path('../data_gatherers', __FILE__))
  $:.unshift(File.expand_path('../data_searchers', __FILE__))
  $:.unshift(File.expand_path('../api_clients', __FILE__))
  $:.unshift(File.expand_path('../no_sql', __FILE__))
  $:.unshift(File.expand_path('../util', __FILE__))
  $:.unshift(File.expand_path('../logging', __FILE__))

  @@paths_set = true
end