Created
January 29, 2009 12:17
-
-
Save augustl/54518 to your computer and use it in GitHub Desktop.
Handling extensions to built-in classes
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 Hash | |
| def add_a_method | |
| # and so on | |
| end | |
| end |
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
| # Include all the files in lib/core_ext | |
| Dir.glob(File.join(Rails.root, 'lib', 'core_ext', '*.rb')).each do |core_ext| | |
| require core_ext | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment