This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # credit: jeffcarbs on Sorbet Slack | |
| # combine with Tapioca options `gems --no-doc --no-loc` | |
| module TapiocaRbiShim | |
| module RBIFormatter | |
| SIG_METHOD_REGEX = /(^ *sig \{.*?)[;\n] *(def .*)\n+/ | |
| # This method post-processes the original `rbi_for_constant` to | |
| # rewrite the sig+method to the one-liner form (i.e. `sig {}; def meth; end`) | |
| def print_file(rbi) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # typed: strict | |
| # frozen_string_literal: true | |
| require "patches/tapioca_active_record_relations" if defined?(Tapioca) |