Class: Pippi::Checks::SelectFollowedBySize
- Defined in:
- lib/pippi/checks/select_followed_by_size.rb
Defined Under Namespace
Classes: Documentation
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
- #decorate ⇒ Object
-
#initialize(ctx) ⇒ SelectFollowedBySize
constructor
A new instance of SelectFollowedBySize.
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) ⇒ SelectFollowedBySize
Returns a new instance of SelectFollowedBySize.
8 9 10 11 |
# File 'lib/pippi/checks/select_followed_by_size.rb', line 8 def initialize(ctx) super @mycheck = MethodSequenceChecker.new(self, Array, "select", "size", MethodSequenceChecker::ARITY_TYPE_BLOCK_ARG, MethodSequenceChecker::ARITY_TYPE_NONE, true) end |
Instance Method Details
#decorate ⇒ Object
4 5 6 |
# File 'lib/pippi/checks/select_followed_by_size.rb', line 4 def decorate @mycheck.decorate end |