class Kramdown::Utils::Entities::Entity

Represents an entity that has a code_point and name.

Public Instance Methods

char() click to toggle source

Return the UTF8 representation of the entity.

# File lib/kramdown/utils/entities.rb, line 20
def char
  [code_point].pack('U*') rescue nil
end