Module: Qcourses::Configuration

Included in:
BaseController
Defined in:
lib/qcourses/configuration.rb

Defined Under Namespace

Classes: Error, Instance

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



34
35
36
# File 'lib/qcourses/configuration.rb', line 34

def self.instance
  @@instance ||= new
end

.newObject



22
23
24
# File 'lib/qcourses/configuration.rb', line 22

def self.new
  Instance.new
end

Instance Method Details

#local_rootObject



28
29
30
# File 'lib/qcourses/configuration.rb', line 28

def local_root
  @@instance.local_root
end

#rootObject



25
26
27
# File 'lib/qcourses/configuration.rb', line 25

def root
  @@instance.root
end

#viewsObject



31
32
33
# File 'lib/qcourses/configuration.rb', line 31

def views
  @@instance.views
end