Class: Katagen::Command

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

Overview

Entry generator from cli

Class Method Summary collapse

Class Method Details

.leetcode(input_id, options = {}) ⇒ Object

Parameters:

  • input_id: (String)

    question id

  • options (Hash) (defaults to: {})

Options Hash (options):

  • cwd: (String)

    defaults to “./”



14
15
16
17
# File 'lib/katagen/command.rb', line 14

def self.leetcode(input_id, options = {})
  solution = Generators::Solution.new(Strategy::LeetCode.new(input_id), options)
  solution.create_package
end