lib/mack/controller/session.rb in mack-0.6.1.2 vs lib/mack/controller/session.rb in mack-0.7.0

- old
+ new

@@ -28,9 +28,18 @@ # Clears out the session. def reset! @sess_hash = {} end + # Deletes a value from the session + def delete(key) + @sess_hash.delete(key.to_sym) + end + + def inspect + "#{self.id}: #{@sess_hash.inspect}" + end + private attr_reader :sess_hash # :nodoc: end # Session \ No newline at end of file