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.
385 386 387 388 389 |
# File 'lib/steep/errors.rb', line 385 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.
383 384 385 |
# File 'lib/steep/errors.rb', line 383 def method_name @method_name end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name.
382 383 384 |
# File 'lib/steep/errors.rb', line 382 def module_name @module_name end |
Instance Method Details
#to_s ⇒ Object
391 392 393 |
# File 'lib/steep/errors.rb', line 391 def to_s "#{location_to_str}: UnexpectedDynamicMethod: module=#{module_name}, method=#{method_name}" end |