# File lib/facets/more/ann.rb, line 120 def ann!( ref, keys_or_class=nil, keys=nil ) #return heritage(ref) unless keys_or_class or keys return annotations[ref] unless keys_or_class or keys if Class === keys_or_class keys ||= {} keys[:class] = keys_or_class else keys = keys_or_class end if Hash === keys ref = ref.to_sym annotations[ref] ||= {} annotations[ref].update(keys.rekey) else key = keys.to_sym annotations[ref][key] = heritage(ref)[key].dup end end