Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dj2 committed Mar 9, 2011
1 parent 01d2940 commit 032e3be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/goliath/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def self.app_file
# @return [Nil]
def self.run!
file = File.basename(app_file, '.rb')
klass = begin Kernel.const_get(camel_case(file)) rescue NameError
klass = begin
Kernel.const_get(camel_case(file))
rescue NameError
raise NameError, "Class #{camel_case(file)} not found."
end
api = klass.new
Expand Down

0 comments on commit 032e3be

Please sign in to comment.