Class: Rock::HTML::AutoprojPackageSet
- Inherits:
-
Object
- Object
- Rock::HTML::AutoprojPackageSet
- Defined in:
- lib/rock/html/autoproj_package_set.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(page) ⇒ AutoprojPackageSet
constructor
A new instance of AutoprojPackageSet.
- #render(pkg_set) ⇒ Object
- #render_vcs(vcs) ⇒ Object
Constructor Details
#initialize(page) ⇒ AutoprojPackageSet
Returns a new instance of AutoprojPackageSet
6 7 8 9 |
# File 'lib/rock/html/autoproj_package_set.rb', line 6 def initialize(page) @page = page @template = page.load_template(TEMPLATE_DIR, 'autoproj_package_set.page') end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page
4 5 6 |
# File 'lib/rock/html/autoproj_package_set.rb', line 4 def page @page end |
#template ⇒ Object (readonly)
Returns the value of attribute template
4 5 6 |
# File 'lib/rock/html/autoproj_package_set.rb', line 4 def template @template end |
Instance Method Details
#render(pkg_set) ⇒ Object
11 12 13 |
# File 'lib/rock/html/autoproj_package_set.rb', line 11 def render(pkg_set) page.push nil, template.result(binding) end |
#render_vcs(vcs) ⇒ Object
15 16 17 |
# File 'lib/rock/html/autoproj_package_set.rb', line 15 def render_vcs(vcs) MetaRuby::GUI::HTML::Page.to_html_body(vcs, AutoprojVCS) end |