Exception: RedBlocks::SetUtils::InvalidEntriesError
- Inherits:
-
StandardError
- Object
- StandardError
- RedBlocks::SetUtils::InvalidEntriesError
- Defined in:
- lib/red_blocks/set_utils.rb
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(entries, key) ⇒ InvalidEntriesError
constructor
A new instance of InvalidEntriesError.
- #message ⇒ Object
Constructor Details
#initialize(entries, key) ⇒ InvalidEntriesError
Returns a new instance of InvalidEntriesError.
8 9 10 11 |
# File 'lib/red_blocks/set_utils.rb', line 8 def initialize(entries, key) @entries = entries @key = key end |
Instance Attribute Details
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
12 13 14 |
# File 'lib/red_blocks/set_utils.rb', line 12 def entries @entries end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
12 13 14 |
# File 'lib/red_blocks/set_utils.rb', line 12 def key @key end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/red_blocks/set_utils.rb', line 14 def "Invalid entry: `#{entries.inspect}` for key = #{self.key}" end |