class RedCappedList
Attributes
cap[RW]
key[RW]
Public Class Methods
new(key, cap)
click to toggle source
# File lib/redness/red_capped_list.rb, line 4 def initialize(key, cap) self.key = key self.cap = cap end
Public Instance Methods
add(value)
click to toggle source
# File lib/redness/red_capped_list.rb, line 17 def add(value) RedList.add(key, value) RedList.trim_to(key, cap) end
get()
click to toggle source
# File lib/redness/red_capped_list.rb, line 9 def get RedList.get(key) end
get_strings()
click to toggle source
# File lib/redness/red_capped_list.rb, line 13 def get_strings RedList.get_strings(key) end