class AocCli::Year::Meta
Attributes
paths[R]
user[R]
year[R]
Public Class Methods
new(u:Prefs.default_alias, y:Metafile.get(:year))
click to toggle source
# File lib/aoc_cli/year.rb, line 11 def initialize(u:Prefs.default_alias, y:Metafile.get(:year)) @user = Validate.user(u) @year = Validate.year(y) @paths = Paths::Year.new(u:user, y:year) end
Public Instance Methods
write()
click to toggle source
# File lib/aoc_cli/year.rb, line 17 def write File.write(paths.local(f:"meta"), Metafile.year(u:user, y:year)) end