class Napa::Ext::Poison::PoisonHandler
Constants
- MESSY_CONTAGION_CMD
Attributes
pill[R]
Public Class Methods
new(pill)
click to toggle source
# File lib/napa/ext/poison.rb, line 44 def initialize pill @pill = pill.to_sym end
Public Instance Methods
call(_)
click to toggle source
# File lib/napa/ext/poison.rb, line 48 def call _ case pill when :normal exit 0 when :nohandle exit! 1 when :messy_contagion system MESSY_CONTAGION_CMD end end