Class: Steep::Errors::UnexpectedDynamicMethod
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, module_name:, method_name:) ⇒ UnexpectedDynamicMethod
constructor
A new instance of UnexpectedDynamicMethod.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, module_name:, method_name:) ⇒ UnexpectedDynamicMethod
Returns a new instance of UnexpectedDynamicMethod.
376 377 378 379 380 |
# File 'lib/steep/errors.rb', line 376 def initialize(node:, module_name:, method_name:) @node = node @module_name = module_name @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
374 375 376 |
# File 'lib/steep/errors.rb', line 374 def method_name @method_name end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
373 374 375 |
# File 'lib/steep/errors.rb', line 373 def module_name @module_name end |
Instance Method Details
#to_s ⇒ Object
382 383 384 |
# File 'lib/steep/errors.rb', line 382 def to_s "#{location_to_str}: UnexpectedDynamicMethod: module=#{module_name}, method=#{method_name}" end |