Class: Analects::HskLoader::HskEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/analects/hsk_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#libraryObject

Returns the value of attribute library

Returns:

  • (Object)

    the current value of library



10
11
12
# File 'lib/analects/hsk_loader.rb', line 10

def library
  @library
end

Instance Method Details

#cedictObject



11
12
13
14
15
16
# File 'lib/analects/hsk_loader.rb', line 11

def cedict
  @cedict ||= library.cedict.loader.find_by(
    traditional: traditional,
    simplified: simplified,
  )
end