Class: Bibliothecary::Parsers::Dub
- Inherits:
-
Object
- Object
- Bibliothecary::Parsers::Dub
- Extended by:
- MultiParsers::JSONRuntime
- Includes:
- Analyser
- Defined in:
- lib/bibliothecary/parsers/dub.rb
Class Method Summary collapse
- .mapping ⇒ Object
-
.parse_sdl_manifest(file_contents, options: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods included from MultiParsers::JSONRuntime
Methods included from Analyser
create_analysis, create_error_analysis, included
Class Method Details
.mapping ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bibliothecary/parsers/dub.rb', line 10 def self.mapping { match_filename("dub.json") => { kind: "manifest", parser: :parse_json_runtime_manifest, }, match_filename("dub.sdl") => { kind: "manifest", parser: :parse_sdl_manifest, }, } end |
.parse_sdl_manifest(file_contents, options: {}) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
25 26 27 |
# File 'lib/bibliothecary/parsers/dub.rb', line 25 def self.parse_sdl_manifest(file_contents, options: {}) # rubocop:disable Lint/UnusedMethodArgument SdlParser.new(:runtime, file_contents).dependencies end |