What have you found for these years?


what would you expect?

class Base
  C = 1
class Derived < Base

Base.const_defined?(:C) # => true
Derived.const_defined?(:C) # => ?

The answer is, true in 1.9, false in 1.8.
What would you expect? I vote for 1.9.

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.

All texts are licensed under CC Attribution 3.0