Class: RBS::EnvironmentLoader::Library

Inherits:
Struct
  • Object
show all
Defined in:
lib/rbs/environment_loader.rb,
sig/environment_loader.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLibrary

Returns a new instance of Library.

Parameters:

  • name: (String)
  • version: (String, nil)


37
# File 'sig/environment_loader.rbs', line 37

def initialize: (name: String, version: String?) -> void

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/rbs/environment_loader.rb', line 17

def name
  @name
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



17
18
19
# File 'lib/rbs/environment_loader.rb', line 17

def version
  @version
end