Class: Newstile::Utils::Entities::Entity
- Inherits:
-
Struct
- Object
- Struct
- Newstile::Utils::Entities::Entity
- Defined in:
- lib/newstile/utils/entities.rb
Instance Attribute Summary collapse
-
#code_point ⇒ Object
Returns the value of attribute code_point.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#code_point ⇒ Object
Returns the value of attribute code_point
29 30 31 |
# File 'lib/newstile/utils/entities.rb', line 29 def code_point @code_point end |
#name ⇒ Object
Returns the value of attribute name
29 30 31 |
# File 'lib/newstile/utils/entities.rb', line 29 def name @name end |
Instance Method Details
#char ⇒ Object
31 32 33 |
# File 'lib/newstile/utils/entities.rb', line 31 def char [code_point].pack('U*') rescue nil end |