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
187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 187 def initialize self.pattern = DEFAULT_PATTERN 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
185 186 187 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 185 def basedir @basedir end |
#pattern ⇒ Object
Returns the value of attribute pattern
185 186 187 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 185 def pattern @pattern end |
Instance Method Details
#environment ⇒ Object
200 201 202 |
# File 'opal/lib/mspec/opal/rake_task.rb', line 200 def environment @environment ||= Environment.new(basedir, pattern) end |