Exception: CapybaraObjects::Exceptions::TypeNotRegistered

Inherits:
StandardError
  • Object
show all
Defined in:
lib/capybara_objects/exceptions/type_not_registered.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

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_sObject



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