13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/pippi/checks/reverse_followed_by_each.rb', line 13
def reverse
result = super
if self.class._pippi_check_reverse_followed_by_each.nil?
else
result.singleton_class.class_eval { prepend MyEach }
self.class._pippi_check_reverse_followed_by_each.array_mutator_methods.each do |this_means_its_ok_sym|
result.define_singleton_method(this_means_its_ok_sym, self.class._pippi_check_reverse_followed_by_each.its_ok_watcher_proc(MyEach, :each))
end
end
result
end
|