# File lib/anise/annotations/store.rb, line 47
      def lookup(ref=nil, ns=:ann)
        return @table if ref.nil?

        ref, ns = ref.to_sym, (ns || :ann).to_sym

        ann = {}
        ancestors.reverse_each do |anc|
          next unless anc.is_a?(Annotations)
          if h = anc.annotations.local[ns][ref]
            ann.merge!(h)
          end
        end
        return ann
      end