move adapter stuff around

This commit is contained in:
Torsten Ruger
2018-06-29 14:26:25 +03:00
parent 86b1edb40c
commit e6f01748ff
4 changed files with 25 additions and 23 deletions

View File

@ -191,14 +191,4 @@ module Parfait
end
end
# Word from string
def self.new_word( string )
string = string.to_s if string.is_a? Symbol
word = Word.new( string.length )
string.codepoints.each_with_index do |code , index |
word.set_char(index , code)
end
word
end
end