Class: BlobViewer::CargoToml

Inherits:
DependencyManager show all
Includes:
Static
Defined in:
app/models/blob_viewer/cargo_toml.rb

Constant Summary

Constants inherited from Base

Base::PARTIAL_PATH_PREFIX

Instance Attribute Summary

Attributes inherited from Base

#blob

Instance Method Summary collapse

Methods included from Static

#render_error

Methods inherited from DependencyManager

#package_name, #package_type, #package_url

Methods included from Auxiliary

#visible_to?

Methods included from Gitlab::Allowable

#can?, #can_all?, #can_any?

Methods inherited from Base

auxiliary?, binary?, #binary_detected_after_load?, can_render?, #collapsed?, #initialize, load_async?, loading_partial_path, partial_path, #prepare!, #render_error, rich?, simple?, text?, #too_large?

Constructor Details

This class inherits a constructor from BlobViewer::Base

Instance Method Details

#manager_nameObject



9
10
11
# File 'app/models/blob_viewer/cargo_toml.rb', line 9

def manager_name
  'Cargo'
end

#manager_urlObject



13
14
15
# File 'app/models/blob_viewer/cargo_toml.rb', line 13

def manager_url
  'https://crates.io/'
end