Module: ProblemChild
- Defined in:
- lib/problem_child.rb,
lib/problem_child/helpers.rb,
lib/problem_child/version.rb
Defined Under Namespace
Modules: Helpers
Classes: App
Constant Summary
collapse
- VERSION =
'3.1.0'.freeze
Class Method Summary
collapse
Class Method Details
.public_dir ⇒ Object
24
25
26
|
# File 'lib/problem_child.rb', line 24
def self.public_dir
@public_dir ||= File.expand_path 'public', ProblemChild.root
end
|
.public_dir=(dir) ⇒ Object
28
29
30
|
# File 'lib/problem_child.rb', line 28
def self.public_dir=(dir)
@public_dir = dir
end
|
.root ⇒ Object
12
13
14
|
# File 'lib/problem_child.rb', line 12
def self.root
File.expand_path './problem_child', File.dirname(__FILE__)
end
|
.views_dir ⇒ Object
16
17
18
|
# File 'lib/problem_child.rb', line 16
def self.views_dir
@views_dir ||= File.expand_path 'views', ProblemChild.root
end
|
.views_dir=(dir) ⇒ Object
20
21
22
|
# File 'lib/problem_child.rb', line 20
def self.views_dir=(dir)
@views_dir = dir
end
|