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 =
"2.1.0"
Class Method Summary
collapse
Class Method Details
.public_dir ⇒ Object
27
28
29
|
# File 'lib/problem_child.rb', line 27
def self.public_dir
@public_dir ||= File.expand_path "public", ProblemChild.root
end
|
.public_dir=(dir) ⇒ Object
31
32
33
|
# File 'lib/problem_child.rb', line 31
def self.public_dir=(dir)
@public_dir = dir
end
|
.root ⇒ Object
15
16
17
|
# File 'lib/problem_child.rb', line 15
def self.root
File.expand_path "./problem_child", File.dirname(__FILE__)
end
|
.views_dir ⇒ Object
19
20
21
|
# File 'lib/problem_child.rb', line 19
def self.views_dir
@views_dir ||= File.expand_path "views", ProblemChild.root
end
|
.views_dir=(dir) ⇒ Object
23
24
25
|
# File 'lib/problem_child.rb', line 23
def self.views_dir=(dir)
@views_dir = dir
end
|