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.



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



382
383
384
# File 'lib/steep/errors.rb', line 382

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