Class: Discorb::Emoji Abstract
- Inherits:
-
Object
- Object
- Discorb::Emoji
- Defined in:
- lib/discorb/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
13 14 15 |
# File 'lib/discorb/emoji.rb', line 13 def ==(other) eql?(other) end |
#eql?(other) -> Boolean
9 10 11 |
# File 'lib/discorb/emoji.rb', line 9 def eql?(other) other.is_a?(self.class) && other.to_uri == to_uri end |
#inspect -> Object
17 18 19 |
# File 'lib/discorb/emoji.rb', line 17 def inspect "#<#{self.class}>" end |
#to_hash -> Hash
Returns The hash represents the emoji.
22 23 24 |
# File 'lib/discorb/emoji.rb', line 22 def to_hash raise NotImplementedError end |