Class: LCSC::LCSC

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

Overview

This class represents the main functionality of the LCSC (LeetCode Solution Counter) tool.

Instance Method Summary collapse

Instance Method Details

#start(user, repository) ⇒ Integer

Starts the LCSC tool.

Parameters:

  • user (String)

    The GitHub username of the repository owner.

  • repository (String)

    The name of the GitHub repository.

Returns:

  • (Integer)

    The exit status of the Rouge CLI tool after processing the resolved LCSP.



17
18
19
20
21
# File 'lib/lcsc.rb', line 17

def start(user, repository)
  output = ::LCSC::LCSCResolver.new(user, repository).resolve

  ::Rouge::CLI.parse([output]).run
end