class Object
Public Instance Methods
app()
click to toggle source
# File lib/sinatra/assetpack/rake.rb, line 17 def app require File.expand_path(APP_FILE, Dir.pwd) class_from_string(APP_CLASS) end
class_from_string(str)
click to toggle source
# File lib/sinatra/assetpack/rake.rb, line 11 def class_from_string(str) str.split('::').inject(Object) do |mod, class_name| mod.const_get(class_name) end end