Public Gists by boone

gist: 169143 Shoulda macro for file_colu...
Gravatar
Mon Aug 17 07:14:08 -0700 2009
1
2
3
# file_column Shoulda macro, based off the Paperclip method given here:
# http://giantrobots.thoughtbot.com/2008/3/18/for-attaching-files-use-paperclip#comment--614050918
# pass the extra option :magick => true to test the extra method for the columns that use RMagick
gist: 33175 Using grep from Ruby
Gravatar
Sun Dec 07 08:24:11 -0800 2008
1
2
3
# original slow method to find a number plus a divider (|)
# at the start of a line
def find_num(file, num)