class LanguageCards::Grapheme

Attributes

translation[R]

Public Class Methods

new(grapheme, translation) click to toggle source
# File lib/language_cards/models/grapheme.rb, line 5
def initialize grapheme, translation
  @grapheme = grapheme
  @translation = Array(translation)
end

Public Instance Methods

display() click to toggle source
# File lib/language_cards/models/grapheme.rb, line 10
def display
  @grapheme
end
to_s() click to toggle source
# File lib/language_cards/models/grapheme.rb, line 14
def to_s
  @grapheme
end