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 |