Class: Octodmin::App
- Inherits:
-
Lotus::Application
- Object
- Lotus::Application
- Octodmin::App
- Defined in:
- app/octodmin.rb
Class Attribute Summary collapse
-
.dir ⇒ Object
Returns the value of attribute dir.
Instance Method Summary collapse
-
#initialize(dir = nil) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(dir = nil) ⇒ App
Returns a new instance of App.
51 52 53 54 55 56 57 |
# File 'app/octodmin.rb', line 51 def initialize(dir = nil) raise "Please specify root dir" unless dir raise "Attempt to change root dir" if !self.class.dir.nil? && self.class.dir != dir self.class.dir = dir super() end |
Class Attribute Details
.dir ⇒ Object
Returns the value of attribute dir.
17 18 19 |
# File 'app/octodmin.rb', line 17 def dir @dir end |