Class: Utopia::Shell
- Inherits:
-
Object
- Object
- Utopia::Shell
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/utopia/shell.rb
Overview
This is designed to be used with the corresponding bake task.
Instance Method Summary collapse
- #app ⇒ Object
- #binding ⇒ Object
-
#initialize(context) ⇒ Shell
constructor
A new instance of Shell.
- #to_s ⇒ Object
Constructor Details
#initialize(context) ⇒ Shell
Returns a new instance of Shell.
32 33 34 35 |
# File 'lib/utopia/shell.rb', line 32 def initialize(context) @context = context @app = nil end |
Instance Method Details
#app ⇒ Object
37 38 39 40 41 |
# File 'lib/utopia/shell.rb', line 37 def app @app ||= Rack::Builder.parse_file( File.('config.ru', @context.root) ).first end |
#binding ⇒ Object
47 48 49 |
# File 'lib/utopia/shell.rb', line 47 def binding super end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/utopia/shell.rb', line 43 def to_s self.class.name end |