Module: Flame::Dispatcher::Static

Included in:
Flame::Dispatcher
Defined in:
lib/flame/dispatcher/static.rb

Overview

Module for working with static files

Defined Under Namespace

Classes: StaticFile

Instance Method Summary collapse

Instance Method Details

#find_static(filename = request.path_info, dir: config[:public_dir]) ⇒ Object



7
8
9
# File 'lib/flame/dispatcher/static.rb', line 7

def find_static(filename = request.path_info, dir: config[:public_dir])
	StaticFile.new(filename, dir)
end