Sha256: c7a1f10bb66b74567a3170b2b5a842fa1152739989c1c247dc27ba029799b654

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

module LanguageCards
  class Grapheme
    attr_reader :translation
    def initialize grapheme, translation
      @grapheme = grapheme
      @translation = Array(translation)
    end

    def display
      @grapheme
    end

    def to_s
      @grapheme
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
language_cards-0.3.2 lib/language_cards/models/grapheme.rb
language_cards-0.3.1 lib/language_cards/models/grapheme.rb
language_cards-0.3.0 lib/language_cards/models/grapheme.rb