--00163646b9a2676a19047ae09126 Content-Type: text/plain; charset=ISO-8859-1 You should maybe try with -w: > ruby -vw symbolic.rb ruby 1.9.2dev (2009-12-11 trunk 26067) [x86_64-darwin10.2.0] /symbolic/summand.rb:73: warning: private attribute? /symbolic/factor.rb:71: warning: shadowing outer local variable - base /symbolic/factor.rb:117: warning: private attribute? The second is easy, but the others reveal strange use of attr_reader. Why do you use attr_reader in private context? This is only usefull in a public context I think, as instance variables can be directly accessed by @var (even when it is a variable from the superclass) It correctly pass all the tests, with one warning about drb(circular require) and these 3. Putting the attr_reader before the "private" actually remove the warnings. 2009/12/16 Benoit Daloze <eregontp / gmail.com> > That looks really cool, thanks! > > I began something like that some time ago. > > Remembering I had some awful: > module MathExp > class Function > def self.sq(x il) Function.new(:sq, x, '2x', 'x^3/3') end > > I was using String for functions, as I didn't know yet the power of coerce. > But that was quite easy to get derivative and integral. > > Great job ! > > 2009/12/16 Ravil Bayramgalin <ravwar / gmail.com> > > > http://github.com/brainopia/symbolic - for people interested in symbolic > > math in pure ruby, i would love contribution from community. > > -- > > Posted via http://www.ruby-forum.com/. > > > > > --00163646b9a2676a19047ae09126--