Class: MSpec::Opal::RackApp
- Defined in:
- opal/lib/mspec/opal/rake_task.rb
Instance Attribute Summary collapse
-
#basedir ⇒ Object
Returns the value of attribute basedir.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
- #environment ⇒ Object
-
#initialize {|_self| ... } ⇒ RackApp
constructor
A new instance of RackApp.
Constructor Details
#initialize {|_self| ... } ⇒ RackApp
Returns a new instance of RackApp
211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 211 def initialize self.pattern = nil self.basedir = DEFAULT_BASEDIR yield(self) if block_given? super() use Rack::ShowExceptions use Rack::ShowStatus use Index run environment end |
Instance Attribute Details
#basedir ⇒ Object
Returns the value of attribute basedir
209 210 211 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 209 def basedir @basedir end |
#pattern ⇒ Object
Returns the value of attribute pattern
209 210 211 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 209 def pattern @pattern end |
Instance Method Details
#environment ⇒ Object
224 225 226 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 224 def environment @environment ||= Environment.new(basedir, pattern) end |