class ActionSwitch
Public Class Methods
destroy(type)
click to toggle source
# File lib/action_switch.rb, line 12 def self.destroy(type) DestroyCookies.destroy end
generate(type)
click to toggle source
# File lib/action_switch.rb, line 4 def self.generate(type) begin GenerateCookies.send(type) rescue GenerateCookies.help end end
help()
click to toggle source
# File lib/action_switch.rb, line 16 def self.help #puts "Available actions at this time are generate and distroy" #puts " generate:footer" #puts " destroy" end