On Wed, Aug 8, 2012 at 12:54 PM, Jan E. <[email protected]> wrote:
> This makes no sense. Even if you could redefine "self", it's certainly a
> bad idea to change the way objects are created.

And especially instance "a" would be lost unless instances of class B1
have a reference back to an instance of A.  Basically instance of A in
this scenario is completely superfluous.  If B1's can only be created
via A.new then a method like this would be the way to go

def create(...)
  A.new(...).foo
end

Kind regards


-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to