Exception: CapybaraObjects::Exceptions::TypeNotRegistered
- Inherits:
-
StandardError
- Object
- StandardError
- CapybaraObjects::Exceptions::TypeNotRegistered
- Defined in:
- lib/capybara_objects/exceptions/type_not_registered.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ TypeNotRegistered
constructor
A new instance of TypeNotRegistered.
- #to_s ⇒ Object
Constructor Details
#initialize(type) ⇒ TypeNotRegistered
Returns a new instance of TypeNotRegistered.
5 6 7 |
# File 'lib/capybara_objects/exceptions/type_not_registered.rb', line 5 def initialize(type) self.type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/capybara_objects/exceptions/type_not_registered.rb', line 4 def type @type end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/capybara_objects/exceptions/type_not_registered.rb', line 9 def to_s "Type not registered in CapybaraObjects::RegistryInstance (#{type})" end |