Update incorrect incorrect require path shown in documentation that indicates ... #46

Merged
merged 1 commit into from Jul 29, 2012

Projects

None yet

2 participants

@msavy
Contributor
msavy commented Jan 6, 2012

...cattr when it ought to be mattr.

irb(main):008:0> require 'facets/module/cattr'
LoadError: no such file to load -- facets/module/cattr

irb(main):012:0> require 'facets/module/mattr'
=> true
@trans
Member
trans commented Apr 27, 2012

Thanks for this patch, however module/cattr should exist. So I fixed that. This is one of those methods that's grouped with a number of other closely related methods and I try to offer all obvious ways to require them.

However I should point out that the cattr methods are a bit frowned upon these days for their use of class variables, so I have considered moving this to a standard library instead, loadable via facets/cattr. Would appreciate input on this idea.

@trans trans merged commit 0ce3d70 into rubyworks:master Jul 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment