class Forkforge::CodePoint

Constants

UNICODE_FIELDS

Public Class Methods

new(hash) click to toggle source
# File lib/forkforge/internal/code_point.rb, line 28
def initialize hash
  UNICODE_FIELDS.each { |f|
    instance_eval %Q{
      @#{f} = hash[:#{f}]
    }
  }
end

Public Instance Methods

inspect() click to toggle source
# File lib/forkforge/internal/code_point.rb, line 38
def inspect
  "'#{to_s}' ⇒ [#{@character_name}]"
end
to_s() click to toggle source
# File lib/forkforge/internal/code_point.rb, line 35
def to_s
  [@code_point.to_i(16)].pack('U')
end