Exception: RBS::EnvironmentLoader::UnknownLibraryError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lib:) ⇒ UnknownLibraryError

Returns a new instance of UnknownLibraryError.



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

def initialize(lib:)
  @library = lib

  super("Cannot find type definitions for library: #{lib.name} (#{lib.version || "[nil]"})")
end

Instance Attribute Details

#libraryObject (readonly)

Returns the value of attribute library.



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

def library
  @library
end