Flowdock
inherited_reader(constant_name) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rss/utils.rb, line 82
      def inherited_reader(constant_name)
        base_class = inherited_base
        result = base_class.const_get(constant_name)
        found_base_class = false
        ancestors.reverse_each do |klass|
          if found_base_class
            if klass.const_defined?(constant_name)
              result = yield(result, klass.const_get(constant_name))
            end
          else
            found_base_class = klass == base_class
          end
        end
        result
      end
Register or log in to add new notes.