Method: RBS::InheritModuleError#initialize

Defined in:
lib/rbs/errors.rb

#initialize(super_decl) ⇒ InheritModuleError

Returns a new instance of InheritModuleError.



192
193
194
195
196
# File 'lib/rbs/errors.rb', line 192

def initialize(super_decl)
  @super_decl = super_decl

  super "#{Location.to_string(super_decl.location)}: Cannot inherit a module: #{super_decl.name}"
end