Class: Volt
- Inherits:
-
Object
show all
- Defined in:
- lib/volt.rb,
lib/volt/volt/environment.rb,
app/volt/controllers/notices_controller.rb
Defined Under Namespace
Classes: Environment, NoticesController
Class Method Summary
collapse
Class Method Details
12
13
14
|
# File 'lib/volt.rb', line 12
def self.client?
!ENV['SERVER']
end
|
20
21
22
|
# File 'lib/volt.rb', line 20
def self.env
@env ||= Volt::Environment.new
end
|
4
5
6
|
# File 'lib/volt.rb', line 4
def self.root
@root ||= File.expand_path(Dir.pwd)
end
|
8
9
10
|
# File 'lib/volt.rb', line 8
def self.server?
!!ENV['SERVER']
end
|
.source_maps? ⇒ Boolean
16
17
18
|
# File 'lib/volt.rb', line 16
def self.source_maps?
!!ENV['MAPS']
end
|