Class: Statique::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/statique/configuration.rb', line 8

def initialize
  @root_url = "/"
  @paths = OpenStruct.new(
    pwd: Pathname.pwd,
    public: Pathname.pwd.join("public"),
    content: Pathname.pwd.join("content"),
    layouts: Pathname.pwd.join("layouts"),
    assets: Pathname.pwd.join("assets"),
    destination: Pathname.pwd.join("dist")
  )
end

Instance Attribute Details

#pathsObject

Returns the value of attribute paths.



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

def paths
  @paths
end

#root_urlObject

Returns the value of attribute root_url.



5
6
7
# File 'lib/statique/configuration.rb', line 5

def root_url
  @root_url
end