Class: Matryoshka
- Inherits:
-
Object
- Object
- Matryoshka
- Defined in:
- lib/matryoshka.rb,
lib/matryoshka.rb
Defined Under Namespace
Modules: Document Classes: Answer, Data, External
Constant Summary collapse
- ROOT_DIR =
File.(File.dirname(__FILE__) + '/../')
Class Method Summary collapse
Instance Method Summary collapse
- #application ⇒ Object
- #call(rack_env) ⇒ Object
-
#initialize(app = nil) ⇒ Matryoshka
constructor
A new instance of Matryoshka.
Constructor Details
#initialize(app = nil) ⇒ Matryoshka
Returns a new instance of Matryoshka.
20 21 22 |
# File 'lib/matryoshka.rb', line 20 def initialize(app = nil) @application = app end |
Class Method Details
.mrequire(filename) ⇒ Object
4 5 6 |
# File 'lib/matryoshka.rb', line 4 def self.mrequire(filename) Kernel.require ROOT_DIR + "/lib/matryoshka/#{filename}" end |