diff options
author | B Mathis <brandon@imathis.com> | 2009-11-09 23:38:48 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-09 23:38:48 -0600 |
commit | bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2 (patch) | |
tree | c0d6ad4fbe676659e1662a0e83684fbfcbc260d0 /source/_helpers.rb | |
parent | 8cb2f154876a0d3b621bceedd1f73ac79a86cd99 (diff) | |
download | my_new_personal_website-bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2.tar.xz my_new_personal_website-bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2.zip |
updated styles for delicious and twitter
Diffstat (limited to '')
-rw-r--r-- | source/_helpers.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/_helpers.rb b/source/_helpers.rb index 4f7dbf6c..f957d2a6 100644 --- a/source/_helpers.rb +++ b/source/_helpers.rb @@ -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 |