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.



83
84
85
# File 'app/helpers/application_helper.rb', line 83

def initialize(context)
  @context = context
end

Instance Method Details

#actions(&block) ⇒ Object



89
90
91
# File 'app/helpers/application_helper.rb', line 89

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

#html_safe(html) ⇒ Object



93
94
95
# File 'app/helpers/application_helper.rb', line 93

def html_safe(html)
  html.html_safe
end