Class: Discorb::Emoji
Abstract
- Inherits:
-
Object
show all
- Defined in:
- lib/discorb/emoji.rb
Overview
Represents a Discord emoji.
Instance Method Summary
collapse
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
|