class HID::Persistence::Memory::Recorder
Attributes
store[RW]
Public Class Methods
record(input, type)
click to toggle source
# File lib/hid/persistence/memory/recorder.rb, line 8 def record(input, type) type_array = store[type] ||= [] return if type_array.include? input type_array << input nil end
recorded(type)
click to toggle source
# File lib/hid/persistence/memory/recorder.rb, line 15 def recorded(type) return store unless type store[type] || [] end