class Lingo::Database::Source::SingleWord
Constants
- DEFAULT_DEF_WC
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/lingo/database/source/single_word.rb, line 42 def initialize(*) super @pat = /^(#{@wrd})$/ @mul = @config.fetch('def-mul-wc', @def).downcase end
Public Instance Methods
dump_line(key, val, *)
click to toggle source
# File lib/lingo/database/source/single_word.rb, line 52 def dump_line(key, val, *) key end
parse_line(line, key, val)
click to toggle source
# File lib/lingo/database/source/single_word.rb, line 48 def parse_line(line, key, val) [k = key.strip, [lexical(k, k.include?(' ') ? @mul : @def)]] end