Class: Hanmoto::Configuration
- Inherits:
-
Object
- Object
- Hanmoto::Configuration
- Defined in:
- lib/hanmoto/configuration.rb
Constant Summary collapse
- OPTIONS =
i[view_dir layouts]
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Configuration
7 8 9 10 11 12 |
# File 'lib/hanmoto/configuration.rb', line 7 def initialize @view_dir = 'public_pages' @layouts = { html: 'public', } end |
Instance Method Details
#to_h ⇒ Object
14 15 16 |
# File 'lib/hanmoto/configuration.rb', line 14 def to_h OPTIONS.map { |name| [name, public_send(name)] }.to_h end |