Created
March 31, 2013 19:08
-
-
Save evanpurkhiser/5281633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the page title. | |
# | |
# It's possible to have the application name added to the title on either side | |
# of the passed page title by passing the options :left, :right, or :none. You | |
# can also set the delmiter for the title | |
# | |
# Returns String | |
def self.page_title(title, with_name = :left, delimiter = '-') | |
title = [Clocker::NAME, title].join(" #{delimiter} ") if with_name == :left | |
title = [titlem Clocker::NAME].join(" #{delimiter} ") if with_name == :right | |
self.title = title | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment