Class: GitAttributes

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/helpers/git_attributes.rb

Overview

typed: strict frozen_string_literal: true

Class Method Summary collapse

Class Method Details

.create_generated_attribute_file(path) ⇒ Object



9
10
11
12
13
# File 'lib/tapioca/helpers/git_attributes.rb', line 9

def create_generated_attribute_file(path)
  create_gitattributes_file(path, <<~CONTENT)
    **/*.rbi linguist-generated=true
  CONTENT
end

.create_vendored_attribute_file(path) ⇒ Object



16
17
18
19
20
# File 'lib/tapioca/helpers/git_attributes.rb', line 16

def create_vendored_attribute_file(path)
  create_gitattributes_file(path, <<~CONTENT)
    **/*.rbi linguist-vendored=true
  CONTENT
end