Class: Bones::Static

Inherits:
Rack::Static
  • Object
show all
Defined in:
lib/bones/static.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, *args, &block) ⇒ Static

Returns a new instance of Static.



3
4
5
6
# File 'lib/bones/static.rb', line 3

def initialize(app, *args, &block)
  super app, :urls => Bones.public_directories, 
    :root => Bones.root / 'public', &block
end