class Gitdocs::BrowserApp
Public Instance Methods
id()
click to toggle source
@return [Integer]
# File lib/gitdocs/browser_app.rb, line 16 def id @id ||= params[:id].to_i end
path()
click to toggle source
@return [Gitdocs::Repository::Path]
# File lib/gitdocs/browser_app.rb, line 26 def path halt(404) unless repository @path ||= Repository::Path.new( repository, URI.decode(params[:splat].first) ) end
repository()
click to toggle source
@return [Gitdocs::Repository::Path]
# File lib/gitdocs/browser_app.rb, line 21 def repository @repository ||= Repository.new(Share.find(id)) end