public
Description: Explicit metaclasses for Ruby
Homepage: http://magicmodels.rubyforge.org/magic_metaclass
Clone URL: git://github.com/drnic/magic_metaclass.git
name age message
file .gitignore Wed Apr 02 14:19:22 -0700 2008 setup gem config + version 1.0.0 [drnic]
file History.txt Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
file License.txt Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
file Manifest.txt Wed Apr 02 14:19:22 -0700 2008 setup gem config + version 1.0.0 [drnic]
file README.txt Wed Apr 02 21:39:18 -0700 2008 support for PersonClass, PersonEigen, PersonEig... [drnic]
file Rakefile Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
directory config/ Wed Apr 02 14:19:22 -0700 2008 setup gem config + version 1.0.0 [drnic]
directory lib/ Wed Apr 02 21:42:29 -0700 2008 test_almost_good_name - protected against Perso... [drnic]
directory log/ Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
directory script/ Thu Apr 03 00:58:32 -0700 2008 fixed website link to downloads [drnic]
file setup.rb Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
directory tasks/ Wed Apr 02 12:01:01 -0700 2008 some tests [drnic]
directory test/ Wed Apr 02 21:42:29 -0700 2008 test_almost_good_name - protected against Perso... [drnic]
directory website/ Thu Apr 03 00:58:32 -0700 2008 fixed website link to downloads [drnic]
README.txt
= magic_metaclass

* http://magicmodels.rubyforge.org/magic_metaclass

== DESCRIPTION:

For each Ruby class, say +Person+, its matching explicit metaclass is now available via a similarly named constant 
+PersonMetaclass+.

    class Person; end
    Person
    # => Person
    PersonMetaclass
    # => #<Class:Person>
    PersonClass
    # => #<Class:Person>
    PersonEigenclass
    # => #<Class:Person>
    PersonEigen
    # => #<Class:Person>

    metaclass = class << Person; self; end
    PersonMetaclass == metaclass
    # => true

== INSTALL:

    sudo gem install magic_metaclass

Within your application, add the following line:

    require 'magic_metaclass'

== LICENSE:

Copyright (c) 2008 Dr Nic Williams

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.