given this code:
class A CONST = \'A\' def initialize puts CONST end end class B < A CONST = \'B\' end A.new # => \'A\' B.new # => \'A\'
In case anyone finds this and is using module extension instead, just use
self::CONST