Module: Pippi::Checks::SelectFollowedByFirst::MyFirst

Defined in:
lib/pippi/checks/select_followed_by_first.rb

Instance Method Summary collapse

Instance Method Details

#first(elements = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/pippi/checks/select_followed_by_first.rb', line 4

def first(elements = nil)
  unless elements
    self.class._pippi_check_select_followed_by_first.add_problem
  end
  if elements
    super(elements)
  else
    super()
  end
end