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.



8
9
10
11
12
# File 'lib/rbs/environment_loader.rb', line 8

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.



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

def library
  @library
end