Class: Aegis::Loader

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

Class Method Summary collapse

Class Method Details

.load_pathsObject



21
22
23
24
25
26
# File 'lib/aegis/loader.rb', line 21

def load_paths
  for path in paths
    require path
  end
  @loaded = true
end

.loaded?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/aegis/loader.rb', line 28

def loaded?
  @loaded
end

.pathsObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/aegis/loader.rb', line 5

def paths
  [ 'ostruct',
    'aegis/util',
    'aegis/errors',
    'aegis/action',
    'aegis/compiler',
    'aegis/has_role',
    'aegis/parser',
    'aegis/permissions',
    'aegis/resource',
    'aegis/role',
    'aegis/sieve',
    'aegis/controller',
    'aegis/active_record_ext' ]
end