Class: Steep::Errors::IncompatibleArguments
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#method_type ⇒ Object
readonly
Returns the value of attribute method_type.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#receiver_type ⇒ Object
readonly
Returns the value of attribute receiver_type.
Instance Method Summary collapse
-
#initialize(node:, receiver_type:, method_type:) ⇒ IncompatibleArguments
constructor
A new instance of IncompatibleArguments.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, receiver_type:, method_type:) ⇒ IncompatibleArguments
Returns a new instance of IncompatibleArguments.
66 67 68 69 70 |
# File 'lib/steep/errors.rb', line 66 def initialize(node:, receiver_type:, method_type:) super(node: node) @receiver_type = receiver_type @method_type = method_type end |
Instance Attribute Details
#method_type ⇒ Object (readonly)
Returns the value of attribute method_type.
64 65 66 |
# File 'lib/steep/errors.rb', line 64 def method_type @method_type end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
62 63 64 |
# File 'lib/steep/errors.rb', line 62 def node @node end |
#receiver_type ⇒ Object (readonly)
Returns the value of attribute receiver_type.
63 64 65 |
# File 'lib/steep/errors.rb', line 63 def receiver_type @receiver_type end |
Instance Method Details
#to_s ⇒ Object
72 73 74 |
# File 'lib/steep/errors.rb', line 72 def to_s "#{location_to_str}: IncompatibleArguments: receiver=#{receiver_type}, method_type=#{method_type}" end |