From bc033cfa8e2332a07c2b56ad36eb894c0a6f3ec2 Mon Sep 17 00:00:00 2001 From: B Mathis Date: Mon, 9 Nov 2009 23:38:48 -0600 Subject: updated styles for delicious and twitter --- source/_helpers.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/_helpers.rb') 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 -- cgit v1.2.1