https://github.com/floehopper/metaclass
Adds a metaclass method to all Ruby objects
https://github.com/floehopper/metaclass
metaclass metaprogramming ruby
Last synced: 11 months ago
JSON representation
Adds a metaclass method to all Ruby objects
- Host: GitHub
- URL: https://github.com/floehopper/metaclass
- Owner: floehopper
- License: other
- Created: 2011-08-11T15:42:43.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T12:41:59.000Z (almost 7 years ago)
- Last Synced: 2025-05-14T16:57:26.651Z (12 months ago)
- Topics: metaclass, metaprogramming, ruby
- Language: Ruby
- Homepage:
- Size: 1.92 MB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
## Metaclass [](https://travis-ci.org/floehopper/metaclass) [](http://badge.fury.io/rb/metaclass)
Adds a `__metaclass__` method to all Ruby objects.
## Motivations
* Even though WhyTheLuckyStiff's [metaid gem](https://rubygems.org/gems/metaid) does something similar, apparently the metaclass method without underscores [doesn't play well with Rails v2.3](https://github.com/floehopper/mocha/commit/f0749d6d291164cc9280aa8ba16f33d652d45fe1#commitcomment-475799).
* I'm trying to extract code out of the [mocha gem](https://github.com/floehopper/mocha) and this is an obvious candidate.
## License
This library is released under the [MIT License](http://www.opensource.org/licenses/MIT). See [COPYING.txt](https://github.com/floehopper/metaclass/blob/master/COPYING.txt).