Class: TanukiEmoji::CodepointAlreadyIndexedError
- Defined in:
- lib/tanuki_emoji/errors.rb
Overview
Error: An Emoji with the same codepoints has been previously indexed
Instance Attribute Summary collapse
-
#codepoints ⇒ Object
readonly
Returns the value of attribute codepoints.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, codepoint) ⇒ CodepointAlreadyIndexedError
constructor
A new instance of CodepointAlreadyIndexedError.
Constructor Details
#initialize(name, codepoint) ⇒ CodepointAlreadyIndexedError
Returns a new instance of CodepointAlreadyIndexedError.
29 30 31 32 33 34 35 36 37 |
# File 'lib/tanuki_emoji/errors.rb', line 29 def initialize(name, codepoint) @name = name @codepoint = codepoint = "Cannot index '#{name}' Emoji with codepoint: '#{codepoint}'. " \ "An Emoji with that codepoint has already been indexed." super() end |
Instance Attribute Details
#codepoints ⇒ Object (readonly)
Returns the value of attribute codepoints.
25 26 27 |
# File 'lib/tanuki_emoji/errors.rb', line 25 def codepoints @codepoints end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/tanuki_emoji/errors.rb', line 25 def name @name end |