Module: Pippi::Checks::SelectFollowedByFirst::MyModule

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

Instance Method Summary collapse

Instance Method Details

#first(elements = nil) ⇒ Object



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

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