Module: Useless

Defined in:
lib/useless.rb,
lib/useless/fs.rb,
lib/useless/rack.rb,
lib/useless/mongo.rb,
lib/useless/rack/fs.rb,
lib/useless/version.rb,
lib/useless/rack/files.rb,
lib/useless/rack/mongo.rb,
lib/useless/rack/exceptions.rb,
lib/useless/rack/authentication/access_token.rb,
lib/useless/rack/authentication/query_string.rb,
lib/useless/rack/authentication/request_header.rb

Defined Under Namespace

Modules: Mongo Classes: FS, Rack

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.fsObject



10
11
12
# File 'lib/useless.rb', line 10

def self.fs
  @fs ||= Useless::FS.new(mongo)
end

.mongoObject



6
7
8
# File 'lib/useless.rb', line 6

def self.mongo
  @mongo ||= Useless::Mongo.for_env
end