module Aoc::Templates
Public Class Methods
solution_file_template()
click to toggle source
# File lib/aoc/templates.rb, line 3 def self.solution_file_template <<~CODE #!/usr/bin/env ruby def part1 input = File.read('input.txt') end def part2 input = File.read('input.txt') end puts "Solution part1: \#{part1}" puts "Solution part2: \#{part2}" CODE end