updated styles for delicious and twitter

This commit is contained in:
B Mathis 2009-11-09 23:38:48 -06:00
parent 8cb2f15487
commit bc033cfa8e
6 changed files with 46 additions and 38 deletions

View file

@ -156,6 +156,15 @@ module Helpers
# My added helpers
def show_part (file)
data = ''
f = File.open(Dir.pwd+"/source/"+file)
f.each_line do |line|
data += line
end
data
end
def shorten_words (string, word_limit = 25)
words = string.split(/\s/)
if words.size >= word_limit