Class: Rock::HTML::AutoprojOSDep
- Inherits:
-
Object
- Object
- Rock::HTML::AutoprojOSDep
- Defined in:
- lib/rock/html/autoproj_osdep.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) ⇒ AutoprojOSDep
constructor
A new instance of AutoprojOSDep.
- #render(object) ⇒ Object
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
#page ⇒ Object (readonly)
Returns the value of attribute page
4 5 6 |
# File 'lib/rock/html/autoproj_osdep.rb', line 4 def page @page end |
#template ⇒ Object (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 |