Class: Deathnote::DeadCodes

Inherits:
Object
  • Object
show all
Defined in:
lib/deathnote.rb

Instance Method Summary collapse

Constructor Details

#initialize(branch:, options:) ⇒ DeadCodes

Returns a new instance of DeadCodes.



59
60
61
62
# File 'lib/deathnote.rb', line 59

def initialize(branch:, options:)
  @branch = branch
  @options = options
end

Instance Method Details

#runObject



64
65
66
67
# File 'lib/deathnote.rb', line 64

def run
  Open3.popen3("git checkout #{@branch}")
  to_list(run_debride)
end