Class: GitAttributes

Inherits:
Object
  • Object
show all
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

: (Pathname path) -> void



7
8
9
10
11
# File 'lib/tapioca/helpers/git_attributes.rb', line 7

def create_generated_attribute_file(path)
  create_gitattributes_file(path, "    **/*.rbi linguist-generated=true\n  CONTENT\nend\n")

.create_vendored_attribute_file(path) ⇒ Object

: (Pathname path) -> void



14
15
16
17
18
# File 'lib/tapioca/helpers/git_attributes.rb', line 14

def create_vendored_attribute_file(path)
  create_gitattributes_file(path, "    **/*.rbi linguist-vendored=true\n  CONTENT\nend\n")