Module: Lurtz
- Defined in:
- lib/lurtz.rb,
lib/lurtz/page.rb,
lib/lurtz/console.rb,
lib/lurtz/version.rb,
lib/lurtz/webserver.rb,
lib/lurtz/request_modifier.rb,
lib/lurtz/response_modifier.rb
Defined Under Namespace
Classes: Console, Page, RequestModifier, ResponseModifier, WebServer
Constant Summary collapse
- VERSION =
"0.0.0"
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
-
.root_dir ⇒ Object
Returns the value of attribute root_dir.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
13 14 15 |
# File 'lib/lurtz.rb', line 13 def config @config end |
.root_dir ⇒ Object
Returns the value of attribute root_dir.
13 14 15 |
# File 'lib/lurtz.rb', line 13 def root_dir @root_dir end |
Class Method Details
.app ⇒ Object
30 31 32 33 34 |
# File 'lib/lurtz.rb', line 30 def app YAML::load(File.read("#{@root_dir}/app_config.yml")) || {} rescue ArgumentError Lurtz.log "Badly formatted app_config.yml" end |
.log(message) ⇒ Object
26 27 28 |
# File 'lib/lurtz.rb', line 26 def log() puts if config[:enable_logging] end |