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.



91
92
93
# File 'app/helpers/application_helper.rb', line 91

def initialize(context)
  @context = context
end

Instance Method Details

#actions(&block) ⇒ Object



97
98
99
# File 'app/helpers/application_helper.rb', line 97

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

#html_safe(html) ⇒ Object



101
102
103
# File 'app/helpers/application_helper.rb', line 101

def html_safe(html)
  html.html_safe
end