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.



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_nameObject (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_nameObject (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_sObject



391
392
393
# File 'lib/steep/errors.rb', line 391

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