Class: RubyCord::Emoji Abstract
- Inherits:
-
Object
- Object
- RubyCord::Emoji
- Defined in:
- lib/rubycord/emoji.rb
Overview
This class is abstract.
Represents a Discord emoji.
Direct Known Subclasses
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #inspect ⇒ Object
-
#to_hash ⇒ Hash
The hash represents the emoji.
Instance Method Details
#==(other) ⇒ Object
12 13 14 |
# File 'lib/rubycord/emoji.rb', line 12 def ==(other) eql?(other) end |
#eql?(other) ⇒ Boolean
8 9 10 |
# File 'lib/rubycord/emoji.rb', line 8 def eql?(other) other.is_a?(self.class) && other.to_uri == to_uri end |
#inspect ⇒ Object
16 17 18 |
# File 'lib/rubycord/emoji.rb', line 16 def inspect "#<#{self.class}>" end |
#to_hash ⇒ Hash
Returns The hash represents the emoji.
21 22 23 |
# File 'lib/rubycord/emoji.rb', line 21 def to_hash raise NotImplementedError end |