# File lib/anise/annotative/variables.rb, line 73 def method_added(sym) @_variable_annotations ||= {} @_variable_annotations.each do |iv, block| if iv.to_s.index('/') iv, ns = iv.to_s.split('/') else ns = :ann end value = instance_variable_get(iv) if block block.call(sym, value) else ann(sym/ns, iv=>value) end # TODO: can we undefine the instance variable? instance_variable_set(iv, nil) end super(sym) if defined?(super) end