Class: Statique::Configuration
- Inherits:
-
Object
- Object
- Statique::Configuration
- Defined in:
- lib/statique/configuration.rb
Instance Attribute Summary collapse
-
#paths ⇒ Object
Returns the value of attribute paths.
-
#root_url ⇒ Object
Returns the value of attribute root_url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#paths ⇒ Object
Returns the value of attribute paths.
6 7 8 |
# File 'lib/statique/configuration.rb', line 6 def paths @paths end |
#root_url ⇒ Object
Returns the value of attribute root_url.
5 6 7 |
# File 'lib/statique/configuration.rb', line 5 def root_url @root_url end |