Class: Dok::Application
- Inherits:
-
Object
- Object
- Dok::Application
- Defined in:
- lib/dok.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #init ⇒ Object
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
8 9 10 11 |
# File 'lib/dok.rb', line 8 def initialize @root = Dir.pwd @config = Config.new(@root) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/dok.rb', line 6 def config @config end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
6 7 8 |
# File 'lib/dok.rb', line 6 def root @root end |
Instance Method Details
#init ⇒ Object
13 14 15 |
# File 'lib/dok.rb', line 13 def init @config.init() end |