Module: TitleHelper

Defined in:
lib/rails/generators/humdrum/layout/templates/helpers/title_helper.rb

Instance Method Summary collapse

Instance Method Details

#set_heading(heading) ⇒ Object



3
4
5
# File 'lib/rails/generators/humdrum/layout/templates/helpers/title_helper.rb', line 3

def set_heading(heading)
  @heading = heading
end

#set_title(title) ⇒ Object



7
8
9
# File 'lib/rails/generators/humdrum/layout/templates/helpers/title_helper.rb', line 7

def set_title(title)
  @title = title
end

#titleObject



11
12
13
# File 'lib/rails/generators/humdrum/layout/templates/helpers/title_helper.rb', line 11

def title
  @title || "<%= application_name -%>"
end