Class: Parklife::Config
- Inherits:
-
Object
- Object
- Parklife::Config
- Defined in:
- lib/parklife/config.rb
Constant Summary collapse
- DEFAULT_HOST =
'example.com'- DEFAULT_SCHEME =
'http'
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#base ⇒ Object
Returns the value of attribute base.
-
#build_dir ⇒ Object
Returns the value of attribute build_dir.
-
#nested_index ⇒ Object
Returns the value of attribute nested_index.
-
#on_404 ⇒ Object
Returns the value of attribute on_404.
-
#reporter ⇒ Object
Returns the value of attribute reporter.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
14 15 16 17 18 19 20 |
# File 'lib/parklife/config.rb', line 14 def initialize self.base = nil self.build_dir = 'build' self.nested_index = true self.on_404 = :error self.reporter = StringIO.new end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
11 12 13 |
# File 'lib/parklife/config.rb', line 11 def app @app end |
#base ⇒ Object
Returns the value of attribute base.
12 13 14 |
# File 'lib/parklife/config.rb', line 12 def base @base end |
#build_dir ⇒ Object
Returns the value of attribute build_dir.
11 12 13 |
# File 'lib/parklife/config.rb', line 11 def build_dir @build_dir end |
#nested_index ⇒ Object
Returns the value of attribute nested_index.
11 12 13 |
# File 'lib/parklife/config.rb', line 11 def nested_index @nested_index end |
#on_404 ⇒ Object
Returns the value of attribute on_404.
11 12 13 |
# File 'lib/parklife/config.rb', line 11 def on_404 @on_404 end |
#reporter ⇒ Object
Returns the value of attribute reporter.
11 12 13 |
# File 'lib/parklife/config.rb', line 11 def reporter @reporter end |