Exception: RBS::EnvironmentLoader::UnknownLibraryNameError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbs/environment_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:) ⇒ UnknownLibraryNameError

Returns a new instance of UnknownLibraryNameError.



6
7
8
9
# File 'lib/rbs/environment_loader.rb', line 6

def initialize(name:)
  @name = name
  super "Cannot find a library or gem: `#{name}`"
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/rbs/environment_loader.rb', line 4

def name
  @name
end