Class: Pippi::Checks::ReverseFollowedByEach
- Defined in:
- lib/pippi/checks/reverse_followed_by_each.rb
Overview
TODO make this use MethodSequenceChecker
Defined Under Namespace
Modules: MyEach, MyReverse Classes: Documentation
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods inherited from Check
#add_problem, #array_mutator_methods, #clear_fault, #clear_fault_proc, #initialize, #its_ok_watcher_proc, #method_names_that_indicate_this_is_being_used_as_a_collection
Constructor Details
This class inherits a constructor from Pippi::Checks::Check
Instance Method Details
#decorate ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/pippi/checks/reverse_followed_by_each.rb', line 27 def decorate Array.class_exec(self) do |my_check| # How to do this without a class instance variable? @_pippi_check_reverse_followed_by_each = my_check class << self attr_reader :_pippi_check_reverse_followed_by_each end prepend MyReverse end end |