README.erb in fattr-1.1.0 vs README.erb in fattr-2.0.0
- old
+ new
@@ -3,27 +3,24 @@
INSTALL
gem install fattrs
URIS
- http://codeforpeople.com/lib/ruby
+ http://github.com/ahoward/fattr
http://rubyforge.org/projects/codeforpeople/
+ http://codeforpeople.com/
SYNOPSIS
- fattr.rb is a "fatter attr" for ruby.
+ fattr.rb is a "fatter attr" for ruby
- fattr.rb supercedes attributes.rb as that library, even though it added only
- one method to the global namespace, collided too frequently with user code -
- in particular rails' code.
-
the implementation of fattr.rb borrows many of the best ideas from the
metakoans.rb ruby quiz
http://www.rubyquiz.com/quiz67.html
in particular the solutions of Christian Neukirchen and Florian Gross along
- with concepts from the original traits.rb lib
+ with concepts from my original traits.rb lib
key features provided by fattrs are
- ability to specify default values for attrs and definition time. values
can be literal objects or blocks, which are evaluated in the context of
@@ -47,15 +44,20 @@
- block caching, calling an fattr with a block sets the instance
variable to that block
- shortcuts for adding class/module level fattrs
- all this in < 100 lines of code
+ - class inheritable attributes
+ all this in 156 lines of code
+
SAMPLES
<%= samples %>
HISTORY
+ 2.0.0:
+ support class/module inheritable attributes
+
1.1.0:
ruby19 testing. move to github.
1.0.2:
added Fattr shortcut for adding class/module level fattrs