Exception: Xampl::DuplicateXamplInPersister
- Inherits:
-
Exception
- Object
- Exception
- Xampl::DuplicateXamplInPersister
- Defined in:
- lib/xamplr/exceptions.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(xampl1, xampl2, persister) ⇒ DuplicateXamplInPersister
constructor
A new instance of DuplicateXamplInPersister.
- #message ⇒ Object
Constructor Details
#initialize(xampl1, xampl2, persister) ⇒ DuplicateXamplInPersister
Returns a new instance of DuplicateXamplInPersister.
19 20 21 |
# File 'lib/xamplr/exceptions.rb', line 19 def initialize(xampl1, xampl2, persister) @msg = "index: '#{ xampl1.get_the_index }', persister: #{ persister.name }, first: #{ xampl1 }, second: #{ xampl2 }" end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
17 18 19 |
# File 'lib/xamplr/exceptions.rb', line 17 def msg @msg end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/xamplr/exceptions.rb', line 23 def @msg end |