module ApplicationHelper

Public Instance Methods

full_title(page_title) click to toggle source

Returns the full title on a per-page basis. # Documentation comment

# File app/helpers/application_helper.rb, line 3
def full_title(page_title)                                                                    # Method definition
  base_title = "Manos Pappas Webtool App Final Project"               #Variable assignment
  if page_title.empty?                                                                                #Boolean test
    base_title                                                                                                #Implicit return
  else
    "#{base_title} | #{page_title}"                                                   #String interpolation
  end
end