Class: PageHeaderBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ PageHeaderBuilder

Returns a new instance of PageHeaderBuilder.



165
166
167
# File 'app/helpers/application_helper.rb', line 165

def initialize(context)
  @context = context
end

Instance Method Details

#actions(&block) ⇒ Object



171
172
173
# File 'app/helpers/application_helper.rb', line 171

def actions(&block)
  html_safe "<div class=\"page-actions\">#{capture(&block)}</div>"
end

#html_safe(html) ⇒ Object



175
176
177
# File 'app/helpers/application_helper.rb', line 175

def html_safe(html)
  html.html_safe
end