Class: Parklife::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/parklife/config.rb

Constant Summary collapse

DEFAULT_HOST =
'example.com'
DEFAULT_SCHEME =
'http'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



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

#appObject

Returns the value of attribute app.



11
12
13
# File 'lib/parklife/config.rb', line 11

def app
  @app
end

#baseObject

Returns the value of attribute base.



12
13
14
# File 'lib/parklife/config.rb', line 12

def base
  @base
end

#build_dirObject

Returns the value of attribute build_dir.



11
12
13
# File 'lib/parklife/config.rb', line 11

def build_dir
  @build_dir
end

#nested_indexObject

Returns the value of attribute nested_index.



11
12
13
# File 'lib/parklife/config.rb', line 11

def nested_index
  @nested_index
end

#on_404Object

Returns the value of attribute on_404.



11
12
13
# File 'lib/parklife/config.rb', line 11

def on_404
  @on_404
end

#reporterObject

Returns the value of attribute reporter.



11
12
13
# File 'lib/parklife/config.rb', line 11

def reporter
  @reporter
end