lib/language_cards/models/grapheme.rb in language_cards-0.2.0 vs lib/language_cards/models/grapheme.rb in language_cards-0.3.0
- old
+ new
@@ -2,10 +2,10 @@
module LanguageCards
class Grapheme
attr_reader :translation
def initialize grapheme, translation
@grapheme = grapheme
- @translation = translation
+ @translation = Array(translation)
end
def display
@grapheme
end