class AocCli::Commands::DaySolve
Attributes
ans[R]
day[R]
part[R]
user[R]
year[R]
Public Class Methods
new(args)
click to toggle source
# File lib/aoc_cli/commands.rb, line 63 def initialize(args) args = defaults.merge(args).compact @user = args[:user] @year = args[:year] @day = args[:day] @part = args[:part] @ans = args[:ans] end
Public Instance Methods
defaults()
click to toggle source
# File lib/aoc_cli/commands.rb, line 77 def defaults {user:Metafile.get(:user), year:Metafile.get(:year), day:Metafile.get(:day), part:Metafile.get(:part)} end
exec()
click to toggle source
# File lib/aoc_cli/commands.rb, line 71 def exec Solve::Attempt .new(u:user, y:year, d:day, p:part, a:ans) .respond self end