Class: Parklife::Config
- Inherits:
-
Object
- Object
- Parklife::Config
- Defined in:
- lib/parklife/config.rb
Constant Summary collapse
- CACHE_TMPDIR =
'tmp/parklife/cache'- 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.
-
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#nested_index ⇒ Object
Returns the value of attribute nested_index.
-
#no_colour ⇒ Object
Returns the value of attribute no_colour.
-
#on_404 ⇒ Object
Returns the value of attribute on_404.
-
#reporter ⇒ Object
Returns the value of attribute reporter.
-
#skip_build_meta ⇒ Object
Returns the value of attribute skip_build_meta.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/parklife/config.rb', line 19 def initialize self.base = nil self.build_dir = 'build' self.cache_dir = nil self.logger = Logger.new self.nested_index = true self.no_colour = false self.on_404 = :error self.reporter = 'null' self. = false end |
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app.
16 17 18 |
# File 'lib/parklife/config.rb', line 16 def app @app end |
#base ⇒ Object
Returns the value of attribute base.
17 18 19 |
# File 'lib/parklife/config.rb', line 17 def base @base end |
#build_dir ⇒ Object
Returns the value of attribute build_dir.
17 18 19 |
# File 'lib/parklife/config.rb', line 17 def build_dir @build_dir end |
#cache_dir ⇒ Object
Returns the value of attribute cache_dir.
17 18 19 |
# File 'lib/parklife/config.rb', line 17 def cache_dir @cache_dir end |
#logger ⇒ Object
Returns the value of attribute logger.
16 17 18 |
# File 'lib/parklife/config.rb', line 16 def logger @logger end |
#nested_index ⇒ Object
Returns the value of attribute nested_index.
16 17 18 |
# File 'lib/parklife/config.rb', line 16 def nested_index @nested_index end |
#no_colour ⇒ Object
Returns the value of attribute no_colour.
17 18 19 |
# File 'lib/parklife/config.rb', line 17 def no_colour @no_colour end |
#on_404 ⇒ Object
Returns the value of attribute on_404.
16 17 18 |
# File 'lib/parklife/config.rb', line 16 def on_404 @on_404 end |
#reporter ⇒ Object
Returns the value of attribute reporter.
17 18 19 |
# File 'lib/parklife/config.rb', line 17 def reporter @reporter end |
#skip_build_meta ⇒ Object
Returns the value of attribute skip_build_meta.
16 17 18 |
# File 'lib/parklife/config.rb', line 16 def @skip_build_meta end |