module AyeCommander::Status::ClassMethods
Status
related class Methods to be included
Public Instance Methods
succeeds()
click to toggle source
Returns and/or initializes the :@succeeds class instance variable
# File lib/aye_commander/status.rb, line 10 def succeeds @succeeds ||= [DEFAULT] end
succeeds_with(*args, exclude_success: false)
click to toggle source
Adds extra succeeds status other than success. Use exclude_success: true if for whathever reason you don't want :success to be a successful status.
# File lib/aye_commander/status.rb, line 17 def succeeds_with(*args, exclude_success: false) @succeeds = succeeds | args @succeeds.delete(DEFAULT) if exclude_success end