Method: WGU::Sentence#next_tick

Defined in:
lib/pps_commons/sentence.rb

#next_tickObject



91
92
93
94
95
96
97
98
99
100
# File 'lib/pps_commons/sentence.rb', line 91

def next_tick
  if has_more_needs?
    next_need =
      needs.find { |need| need !~ /^!/ } ||
      (needs.find { |need| need =~ /^!/ }.gsub('!', '') rescue '')
    "validate #{next_need}"
  else
    [verb, simple_subject].join(' ')
  end
end