Class: Rock::HTML::AutoprojVCS
- Inherits:
-
Object
- Object
- Rock::HTML::AutoprojVCS
- Defined in:
- lib/rock/html/autoproj_vcs.rb
Overview
Rendering object that displays information about autoproj version control information
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) ⇒ AutoprojVCS
constructor
A new instance of AutoprojVCS.
- #render(vcs, options = Hash.new) ⇒ Object
Constructor Details
#initialize(page) ⇒ AutoprojVCS
Returns a new instance of AutoprojVCS
8 9 10 11 |
# File 'lib/rock/html/autoproj_vcs.rb', line 8 def initialize(page) @page = page @template = page.load_template(TEMPLATE_DIR, 'autoproj_vcs.page') end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page
6 7 8 |
# File 'lib/rock/html/autoproj_vcs.rb', line 6 def page @page end |
#template ⇒ Object (readonly)
Returns the value of attribute template
6 7 8 |
# File 'lib/rock/html/autoproj_vcs.rb', line 6 def template @template end |
Instance Method Details
#render(vcs, options = Hash.new) ⇒ Object
13 14 15 |
# File 'lib/rock/html/autoproj_vcs.rb', line 13 def render(vcs, = Hash.new) page.push nil, template.result(binding) end |