Module: LitaGithub::Filters

Overview

Github handler common-use method filters

Author:

Instance Method Summary collapse

Instance Method Details

#func_disabled?(method) ⇒ TrueClass, FalseClass

Returns whether or not the function has been disabled in the config

Parameters:

  • method (String)

    the method name, usually just __method__

Returns:

  • (TrueClass)

    if function is disabled

  • (FalseClass)

    if function is disabled


27
28
29
# File 'lib/lita-github/filters.rb', line 27

def func_disabled?(method)
  config.send("#{method}_enabled".to_sym) ? false : true
end