class Dependabot::DependencyFileNotParseable

Attributes

file_path[R]

Public Class Methods

new(file_path, msg = nil) click to toggle source
Calls superclass method Dependabot::DependabotError::new
# File lib/dependabot/errors.rb, line 99
def initialize(file_path, msg = nil)
  @file_path = file_path
  super(msg)
end

Public Instance Methods

directory() click to toggle source
# File lib/dependabot/errors.rb, line 108
def directory
  # Directory should always start with a `/`
  file_path.split("/")[0..-2].join("/").sub(%r{^/*}, "/")
end
file_name() click to toggle source
# File lib/dependabot/errors.rb, line 104
def file_name
  file_path.split("/").last
end