Class: CharacterSets
- Inherits:
-
Object
- Object
- CharacterSets
- Defined in:
- lib/open_ehr/rm/data_types/charset_extract.rb
Overview
! /usr/bin/env ruby charactor sets extraction from download file from www.iana.org/assignments/character-sets as character-sets
Class Method Summary collapse
Class Method Details
.get_list ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/open_ehr/rm/data_types/charset_extract.rb', line 7 def self.get_list list = Array.new open('character-sets') do |file| while line = file.gets if /^((Name:)|(Alias:)) (\S+)/ =~ line list << $4 unless $4 == "None" end end end return list end |