class Fantassh::History
Public Class Methods
new(file: HistoryFile.new)
click to toggle source
# File lib/fantassh/history.rb, line 5 def initialize(file: HistoryFile.new) @file = file @file.init_file_structure end
Public Instance Methods
add(entry)
click to toggle source
# File lib/fantassh/history.rb, line 15 def add(entry) @file.add([entry]) end
last()
click to toggle source
# File lib/fantassh/history.rb, line 11 def last @file.all.last end