Class: Pippi::Checks::SelectFollowedByFirst
- Defined in:
- lib/pippi/checks/select_followed_by_first.rb
Defined Under Namespace
Modules: MyModule Classes: Documentation
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
- #decorate ⇒ Object
-
#initialize(ctx) ⇒ SelectFollowedByFirst
constructor
A new instance of SelectFollowedByFirst.
Methods inherited from Check
#add_problem, #clear_fault, #clear_fault_proc, #its_ok_watcher_proc, #method_names_that_indicate_this_is_being_used_as_a_collection, #mutator_methods
Constructor Details
#initialize(ctx) ⇒ SelectFollowedByFirst
Returns a new instance of SelectFollowedByFirst.
21 22 23 24 |
# File 'lib/pippi/checks/select_followed_by_first.rb', line 21 def initialize(ctx) super @mycheck = MethodSequenceChecker.new(self, Array, "select", "first", MethodSequenceChecker::ARITY_TYPE_BLOCK_ARG, MyModule, true) end |
Instance Method Details
#decorate ⇒ Object
17 18 19 |
# File 'lib/pippi/checks/select_followed_by_first.rb', line 17 def decorate @mycheck.decorate end |