Module: LanguageCards::GraphemeBuilder

Defined in:
lib/language_cards/grapheme_builder.rb

Class Method Summary collapse

Class Method Details

.call(translation_graphemes = {}) ⇒ Object

Hash => grapheme



6
7
8
9
10
# File 'lib/language_cards/grapheme_builder.rb', line 6

def self.call(translation_graphemes = {})
  translation_graphemes.each_with_object([]) do |(key, value), memo|
    memo << Grapheme.new(key, value)
  end
end