Module: Pippi::Checks::SelectFollowedByFirst::MySelect
- Defined in:
- lib/pippi/checks/select_followed_by_first.rb
Instance Method Summary collapse
Instance Method Details
#select(&blk) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/pippi/checks/select_followed_by_first.rb', line 17 def select(&blk) result = super if self.class._pippi_check_select_followed_by_first.nil? # Ignore Array subclasses since select or first may have difference meanings else result.extend MyFirst self.class._pippi_check_select_followed_by_first.array_mutator_methods.each do |this_means_its_ok_sym| result.define_singleton_method(this_means_its_ok_sym, self.class._pippi_check_select_followed_by_first.its_ok_watcher_proc(MyFirst, :first)) end end result end |