Module: Aoc::Templates

Defined in:
lib/aoc/templates.rb

Class Method Summary collapse

Class Method Details

.solution_file_templateObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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