module Notifaction::Helpers
Public Instance Methods
auto_quit_enabled?(config, user_conf)
click to toggle source
Should method exit with Type::QUIT? Mainly used in tests @since 0.4.1
# File lib/notifaction/helpers.rb, line 16 def auto_quit_enabled?(config, user_conf) config[:auto_quit] == false || user_conf.config("auto_quit") == false end
deprecation_notice(version, config = {})
click to toggle source
Alert the user that the method they've called is not supported @since 0.4.1
# File lib/notifaction/helpers.rb, line 5 def deprecation_notice(version, config = {}) handler = Notifaction::Type::Terminal.new handler.warning( "Deprecated as of #{version}, current #{Notifaction::VERSION}", config ) handler.quit_soft end