Class: Gitlab::Utils::DelegatorOverride::Error
- Inherits:
-
Object
- Object
- Gitlab::Utils::DelegatorOverride::Error
- Defined in:
- lib/gitlab/utils/delegator_override/error.rb
Instance Attribute Summary collapse
-
#delegator_class ⇒ Object
Returns the value of attribute delegator_class.
-
#delegator_location ⇒ Object
Returns the value of attribute delegator_location.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#target_class ⇒ Object
Returns the value of attribute target_class.
-
#target_location ⇒ Object
Returns the value of attribute target_location.
Instance Method Summary collapse
-
#initialize(method_name, target_class, target_location, delegator_class, delegator_location) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(method_name, target_class, target_location, delegator_class, delegator_location) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 15 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 9 def initialize(method_name, target_class, target_location, delegator_class, delegator_location) @method_name = method_name @target_class = target_class @target_location = target_location @delegator_class = delegator_class @delegator_location = delegator_location end |
Instance Attribute Details
#delegator_class ⇒ Object
Returns the value of attribute delegator_class.
7 8 9 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 7 def delegator_class @delegator_class end |
#delegator_location ⇒ Object
Returns the value of attribute delegator_location.
7 8 9 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 7 def delegator_location @delegator_location end |
#method_name ⇒ Object
Returns the value of attribute method_name.
7 8 9 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 7 def method_name @method_name end |
#target_class ⇒ Object
Returns the value of attribute target_class.
7 8 9 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 7 def target_class @target_class end |
#target_location ⇒ Object
Returns the value of attribute target_location.
7 8 9 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 7 def target_location @target_location end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/gitlab/utils/delegator_override/error.rb', line 17 def to_s "#{delegator_class}##{method_name} is overriding #{target_class}##{method_name}. delegator_location: #{delegator_location} target_location: #{target_location}" end |