Class: Tofu::Tofulet
- Inherits:
-
WEBrick::HTTPServlet::AbstractServlet
- Object
- WEBrick::HTTPServlet::AbstractServlet
- Tofu::Tofulet
- Defined in:
- lib/tofu.rb
Instance Attribute Summary collapse
-
#bartender ⇒ Object
readonly
Returns the value of attribute bartender.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(config, bartender, *options) ⇒ Tofulet
constructor
A new instance of Tofulet.
- #service(req, res) ⇒ Object
Constructor Details
#initialize(config, bartender, *options) ⇒ Tofulet
Returns a new instance of Tofulet.
449 450 451 452 453 |
# File 'lib/tofu.rb', line 449 def initialize(config, , *) = super(config, *) @logger.debug("#{self.class}(initialize)") end |
Instance Attribute Details
#bartender ⇒ Object (readonly)
Returns the value of attribute bartender.
454 455 456 |
# File 'lib/tofu.rb', line 454 def end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
454 455 456 |
# File 'lib/tofu.rb', line 454 def config @config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
454 455 456 |
# File 'lib/tofu.rb', line 454 def logger @logger end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
454 455 456 |
# File 'lib/tofu.rb', line 454 def end |
Instance Method Details
#service(req, res) ⇒ Object
456 457 458 |
# File 'lib/tofu.rb', line 456 def service(req, res) Context.new(req, res).service() end |