Permalink
Browse files

removed unnecessary self.'s

  • Loading branch information...
1 parent da047d3 commit b0c07731d5db5416f95fe48dea05fe0cc2b0755f @bmizerany committed May 4, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/sinatra/base.rb
View
6 lib/sinatra/base.rb
@@ -132,7 +132,7 @@ def mime_type(type)
# Set the Content-Type of the response body given a media type or file
# extension.
def content_type(type, params={})
- mime_type = self.mime_type(type)
+ mime_type = mime_type(type)
fail "Unknown media type: %p" % type if mime_type.nil?
if params.any?
params = params.collect { |kv| "%s=%s" % kv }.join(', ')
@@ -1000,7 +1000,7 @@ def call(env)
private
def detect_rack_handler
- servers = Array(self.server)
+ servers = Array(server)
servers.each do |server_name|
begin
return Rack::Handler.get(server_name.downcase)
@@ -1084,7 +1084,7 @@ class << self
set :lock, false
set :public, Proc.new { root && File.join(root, 'public') }
- set :static, Proc.new { self.public && File.exist?(self.public) }
+ set :static, Proc.new { public && File.exist?(public) }
error ::Exception do
response.status = 500

0 comments on commit b0c0773

Please sign in to comment.