Module: Octokit::Warnable
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| 
       Included In: 
      
     | |
| Defined in: | lib/octokit/warnable.rb | 
Overview
Allows warnings to be suppressed via environment variable.
Class Method Summary
- 
    
      .octokit_warn(*message)  ⇒ nil 
    
    mod_func
    
Wrapper around Kernel#warn to print warnings unless OCTOKIT_SILENT is set to true.
 
Class Method Details
    .octokit_warn(*message)  ⇒ nil  (mod_func)
  
Wrapper around Kernel#warn to print warnings unless OCTOKIT_SILENT is set to true.
# File 'lib/octokit/warnable.rb', line 12
def octokit_warn(*) warn unless ENV['OCTOKIT_SILENT'] end