Class: Tablette::ActionViewRenderer
Instance Method Summary
collapse
#element=, #produce_element
Constructor Details
Returns a new instance of ActionViewRenderer.
3
4
5
6
7
|
# File 'lib/tablette/action_view.rb', line 3
def initialize(template)
super()
@template = template
end
|
Instance Method Details
#to_html(node) ⇒ Object
15
16
17
|
# File 'lib/tablette/action_view.rb', line 15
def to_html(node)
super(node).html_safe
end
|
#wrap_content(proc) ⇒ Object
9
10
11
12
13
|
# File 'lib/tablette/action_view.rb', line 9
def wrap_content(proc)
->(*args) do
@template.capture(*args, &proc)
end
end
|