Class: Steep::Errors::UnexpectedDynamicMethod

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#location_to_str, #print_to

Constructor Details

#initialize(node:, module_name:, method_name:) ⇒ UnexpectedDynamicMethod

Returns a new instance of UnexpectedDynamicMethod.



363
364
365
366
367
# File 'lib/steep/errors.rb', line 363

def initialize(node:, module_name:, method_name:)
  @node = node
  @module_name = module_name
  @method_name = method_name
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



361
362
363
# File 'lib/steep/errors.rb', line 361

def method_name
  @method_name
end

#module_nameObject (readonly)

Returns the value of attribute module_name.



360
361
362
# File 'lib/steep/errors.rb', line 360

def module_name
  @module_name
end

Instance Method Details

#to_sObject



369
370
371
# File 'lib/steep/errors.rb', line 369

def to_s
  "#{location_to_str}: UnexpectedDynamicMethod: module=#{module_name}, method=#{method_name}"
end