Class: Steep::Errors::NoMethod
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, type:, method:) ⇒ NoMethod
constructor
A new instance of NoMethod.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, type:, method:) ⇒ NoMethod
Returns a new instance of NoMethod.
128 129 130 131 132 |
# File 'lib/steep/errors.rb', line 128 def initialize(node:, type:, method:) super(node: node) @type = type @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
126 127 128 |
# File 'lib/steep/errors.rb', line 126 def method @method end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
125 126 127 |
# File 'lib/steep/errors.rb', line 125 def type @type end |
Instance Method Details
#to_s ⇒ Object
134 135 136 |
# File 'lib/steep/errors.rb', line 134 def to_s "#{location_to_str}: NoMethodError: type=#{type}, method=#{method}" end |