Class: Rock::HTML::AutoprojOSDep

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page) ⇒ AutoprojOSDep

Returns a new instance of AutoprojOSDep



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

def initialize(page)
    @page = page
    @template = page.load_template(TEMPLATE_DIR, 'autoproj_osdep.page')
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page



4
5
6
# File 'lib/rock/html/autoproj_osdep.rb', line 4

def page
  @page
end

#templateObject (readonly)

Returns the value of attribute template



4
5
6
# File 'lib/rock/html/autoproj_osdep.rb', line 4

def template
  @template
end

Instance Method Details

#render(object) ⇒ Object



11
12
13
# File 'lib/rock/html/autoproj_osdep.rb', line 11

def render(object)
    page.push nil, template.result(binding)
end