Created
May 16, 2012 15:51
-
-
Save HateBot/2711518 to your computer and use it in GitHub Desktop.
WHADDUP INTERNET
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
class Gist < Hashie::Mash | |
RUBY_REGX = /ruby/i | |
def ruby! | |
self.files = ruby_gists | |
end | |
def ruby_gists | |
self.files.select do |file, info| | |
info.language =~ RUBY_REGX | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yay Ruby!!