Sha256: 35ebde2fb579cf7d3286678f6a444633922392a1b41523f1e8b9af825e21d914

Contents?: true

Size: 245 Bytes

Versions: 3

Compression:

Stored size: 245 Bytes

Contents

require 'yaml'

module JpJisCode
  module Mapping

    filepath = File.join(File.dirname(__FILE__), '../../data/jis_code.yml')
    @data = YAML.load_file(filepath)

    def self.data
      JpJisCode.config.mapping_data || @data
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jp_jis_code-1.1.0 lib/jp_jis_code/mapping.rb
jp_jis_code-1.0.0 lib/jp_jis_code/mapping.rb
jp_jis_code-0.1.0 lib/jp_jis_code/mapping.rb