Class: Newstile::Utils::Entities::Entity

Inherits:
Struct
  • Object
show all
Defined in:
lib/newstile/utils/entities.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_pointObject

Returns the value of attribute code_point

Returns:

  • (Object)

    the current value of code_point



29
30
31
# File 'lib/newstile/utils/entities.rb', line 29

def code_point
  @code_point
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



29
30
31
# File 'lib/newstile/utils/entities.rb', line 29

def name
  @name
end

Instance Method Details

#charObject



31
32
33
# File 'lib/newstile/utils/entities.rb', line 31

def char
  [code_point].pack('U*') rescue nil
end