class Pronto::BundlerAudit::Results::ProntoMessagesAdapter::DeepLine

Pronto::BundlerAudit::Results::ProntoMessagesAdapter::DeepLine is a stand-in for ::Pronto::Git::Line object.

Attributes

line_number[R]
new_lineno[R]
path[R]

Public Class Methods

new(line_number:, path:) click to toggle source
# File lib/pronto/bundler_audit/results/pronto_messages_adapter.rb, line 38
def initialize(line_number:, path:)
  @line_number = line_number
  @path = path
end

Public Instance Methods

commit_sha() click to toggle source

Since we're not passing a commit SHA into ::Pronto::Message.new, Pronto will try calling commit_sha on the (this) Line object.

# File lib/pronto/bundler_audit/results/pronto_messages_adapter.rb, line 45
def commit_sha
  nil
end
line() click to toggle source
# File lib/pronto/bundler_audit/results/pronto_messages_adapter.rb, line 49
def line
  self
end