Class: Dok::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/dok.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApplication

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

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/dok.rb', line 6

def config
  @config
end

#rootObject (readonly)

Returns the value of attribute root.



6
7
8
# File 'lib/dok.rb', line 6

def root
  @root
end

Instance Method Details

#initObject



13
14
15
# File 'lib/dok.rb', line 13

def init
  @config.init()
end