Class: Rock::HTML::AutoprojVCS

Inherits:
Object
  • Object
show all
Defined in:
lib/rock/html/autoproj_vcs.rb

Overview

Rendering object that displays information about autoproj version control information

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pageObject (readonly)

Returns the value of attribute page



6
7
8
# File 'lib/rock/html/autoproj_vcs.rb', line 6

def page
  @page
end

#templateObject (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, options = Hash.new)
    page.push nil, template.result(binding)
end