Method: Ann::ClassMethods#method_added
- Defined in:
- lib/ann.rb
#method_added(name) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/ann.rb', line 30 def method_added(name) method_anns = (Thread.current[:ann_descriptors] || []).map do |desc| desc.klass.new(self, name, *desc.args) end annotations[name].concat(method_anns) Thread.current[:ann_descriptors] = nil end |