class Bibliothecary::Parsers::Dub
Public Class Methods
mapping()
click to toggle source
# 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: {})
click to toggle source
# 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