Sha256: ca452f4caa8335d4ba06e8cbcdd7b8cb97a525f6105b23bc72bafa522d0e0611
Contents?: true
Size: 246 Bytes
Versions: 2
Compression:
Stored size: 246 Bytes
Contents
class StateList def initialize @list = {} end def add(state) @list[state.symbol] = state end def [](symb) @list[symb] end # Convenience methods def empty? @list.empty? end def size @list.size end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplestate-2.0.4 | lib/simplestate/state_list.rb |
simplestate-2.0.3 | lib/simplestate/state_list.rb |