fixes/class_or_module.rb
# Note that this will cache the result, so it generally unsafe during tree modifications.
Note that this will cache the result, so it generally unsafe during tree modifications.
Note that this will cache the result so it generally unsafe during tree modifications .
def ancestors_classes!
    @ancestors_classes ||= begin
      fullnames = ancestors_fullnames!
      result = []
      all_classes {
          |cls|
        if cls.fullname and fullnames.include? cls.fullname
          result << cls
        end
      }
      result
    end
  end
def ancestors_classes! @ancestors_classes ||= begin fullnames = ancestors_fullnames! result = [ ] all_classes { | cls | if cls . fullname and fullnames . include? cls . fullname result << cls end } result end end
Note that this will cache the result, so it generally unsafe during tree modifications.
Note that this will cache the result so it generally unsafe during tree modifications .