Method: Redirect::App::StaticFile#initialize
- Defined in:
- lib/redirect/app.rb
#initialize(path) ⇒ StaticFile
Returns a new instance of StaticFile.
6 7 8 9 |
# File 'lib/redirect/app.rb', line 6 def initialize(path) @path = path @path = File.join(path, 'index.html') unless available? end |