Class: UnicodeCodepoint

Inherits:
Object
  • Object
show all
Defined in:
ext/encoding/character/utf-8/data/generate-unicode-data.rb

Overview

XXX: this is too memory consuming to keep like this. We need to split it up like the perl script does in hashes and arrays. Argh!

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ UnicodeCodepoint

Returns a new instance of UnicodeCodepoint.



99
100
101
102
103
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 99

def initialize(code)
  @code = code
  @type = @value = @lower = @upper = @cclass = @compat = nil
  @compositions = @decompositions = @break_props = nil
end

Instance Attribute Details

#break_propsObject

Returns the value of attribute break_props.



107
108
109
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 107

def break_props
  @break_props
end

#cclassObject

Returns the value of attribute cclass.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def cclass
  @cclass
end

#codeObject

Returns the value of attribute code.



105
106
107
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 105

def code
  @code
end

#compatObject

Returns the value of attribute compat.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def compat
  @compat
end

#compositionsObject

Returns the value of attribute compositions.



107
108
109
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 107

def compositions
  @compositions
end

#decompositionsObject

Returns the value of attribute decompositions.



107
108
109
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 107

def decompositions
  @decompositions
end

#lowerObject

Returns the value of attribute lower.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def lower
  @lower
end

#typeObject

Returns the value of attribute type.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def type
  @type
end

#upperObject

Returns the value of attribute upper.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def upper
  @upper
end

#valueObject

Returns the value of attribute value.



106
107
108
# File 'ext/encoding/character/utf-8/data/generate-unicode-data.rb', line 106

def value
  @value
end