Module: LitaGithub::Filters
- Included in:
- Lita::Handlers::GithubIssues, Lita::Handlers::GithubOrg, Lita::Handlers::GithubPR, Lita::Handlers::GithubRepo
- Defined in:
- lib/lita-github/filters.rb
Overview
Github handler common-use method filters
Instance Method Summary collapse
-
#func_disabled?(method) ⇒ TrueClass, FalseClass
Returns whether or not the function has been disabled in the config.
Instance Method Details
#func_disabled?(method) ⇒ TrueClass, FalseClass
Returns whether or not the function has been disabled in the config
27 28 29 |
# File 'lib/lita-github/filters.rb', line 27 def func_disabled?(method) config.send("#{method}_enabled".to_sym) ? false : true end |