This file contains 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
/* Solarized Dark | |
For use with Jekyll and Pygments | |
http://ethanschoonover.com/solarized | |
SOLARIZED HEX ROLE | |
--------- -------- ------------------------------------------ | |
base03 #002b36 background | |
base01 #586e75 comments / secondary content |
This file contains 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
# USAGE find_copy_and_paste_method.rb MOD_NAME | |
Rails.application.eager_load! | |
base_class = ARGV[0].constantize | |
def all_subclasses(klasses) | |
if klasses == [] | |
klasses | |
else | |
klasses.map{|k| all_subclasses(k.subclasses) << klasses }.flatten | |
end | |
end |