Sha256: 762626690f765a3b6776fed3688dcdb716f181c0a946ad74bf4cf504d3cc13b7
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
require 'jldrill/model/items/ItemType' require 'jldrill/model/items/Vocabulary' require 'jldrill/model/items/JWord' module JLDrill class ItemFactory def ItemFactory::find(type) retVal = nil if type.eql? Vocabulary retVal = ItemType.new(type.to_s, type) retVal.headings = [["kanji", "Kanji", 90], ["reading", "Reading", 130], ["definitions", "Meaning", 230]] elsif type.eql? JWord retVal = ItemType.new(type.to_s, type) retVal.headings = [["kanji", "Kanji", 90], ["reading", "Reading", 130], ["toVocab.definitions", "Meaning", 230]] end return retVal end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.5.1.7 | lib/jldrill/model/items/ItemFactory.rb |