lib/heathen/task.rb
# Deletes any tasks that are keyed for the given action (and optional mime_type pattern, as specified in register)
# Used for testing purposes
Deletes any tasks that are keyed for the given action (and optional mime_type pattern, as specified in register)
Used for testing purposes
Deletes any tasks that are keyed for the given action ( and optional mime_type pattern as specified in register ) Used for testing purposes
def clear action, mime_type=nil
        tasks.keys.each do |key|
          tasks.delete key if key =~ %r[#{task_key(action,mime_type)}]
        end
      end
def clear action , mime_type = nil tasks . keys . each do | key | tasks . delete key if key =~ %r[ #{ task_key ( action , mime_type ) } ] end end
Deletes any tasks that are keyed for the given action (and optional mime_type pattern, as specified in register)
Used for testing purposes
Deletes any tasks that are keyed for the given action ( and optional mime_type pattern as specified in register ) Used for testing purposes
action
<not_specific>
mime_type
<not_specific>