class Rock::HTML::AutoprojPackage
Rendering object that displays information about autoproj packages
Attributes
page[R]
template[R]
Public Class Methods
new(page)
click to toggle source
# File lib/rock/html/autoproj_package.rb, line 7 def initialize(page) @page = page @template = page.load_template(TEMPLATE_DIR, 'autoproj_package.page') end
Public Instance Methods
api_url(pkg)
click to toggle source
# File lib/rock/html/autoproj_package.rb, line 16 def api_url(pkg) if page.respond_to?(:api_url) && (url = page.api_url(pkg)) url end end
render(info, object)
click to toggle source
# File lib/rock/html/autoproj_package.rb, line 12 def render(info, object) page.push nil, template.result(binding) end
render_vcs(vcs)
click to toggle source
# File lib/rock/html/autoproj_package.rb, line 22 def render_vcs(vcs) MetaRuby::GUI::HTML::Page.to_html_body(vcs, AutoprojVCS) end