1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
11 def add_item(key, opts)
13 item = create_item({:name => key}.merge(opts))
17 def remove_item(key, *args)
19 destroy_item items[key] unless args.include? :keep
26 def move_item(src, dst)
28 items[dst] = items[src]