Method: WordSearch::PositionWord::Base#perform

Defined in:
lib/word_search/position_word/base.rb

#performObject



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/word_search/position_word/base.rb', line 16

def perform
  return false unless valid?

  letters.each_with_index do |letter, index|
    place_letter(letter)
    document_position(letter, index)
    update_coordinates
  end

  positions
end