Class: Pippi::Checks::MapFollowedByFlatten
- Defined in:
- lib/pippi/checks/map_followed_by_flatten.rb
Overview
TODO make this use MethodSequenceChecker
Defined Under Namespace
Modules: MyFlatten, MyMap 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
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/pippi/checks/map_followed_by_flatten.rb', line 33 def decorate Array.class_exec(self) do |my_check| # How to do this without a class instance variable? @_pippi_check_map_followed_by_flatten = my_check class << self attr_reader :_pippi_check_map_followed_by_flatten end prepend MyMap end end |