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.
15 16 17 18 |
# File 'lib/utopia/shell.rb', line 15 def initialize(context) @context = context @app = nil end |
Instance Method Details
#app ⇒ Object
20 21 22 23 24 |
# File 'lib/utopia/shell.rb', line 20 def app @app ||= Rack::Builder.parse_file( File.('config.ru', @context.root) ).first end |
#binding ⇒ Object
30 31 32 |
# File 'lib/utopia/shell.rb', line 30 def binding super end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/utopia/shell.rb', line 26 def to_s self.class.name end |