Add rdoc comments to classes.

This commit is contained in:
Sven Weidauer 2022-05-25 22:02:48 +02:00
parent 19703bfaa1
commit d2a41716b2
2 changed files with 6 additions and 0 deletions

View file

@ -1,6 +1,10 @@
# frozen_string_literal: true
class FormatStaged
##
# Entry in the git index.
#
# Data as produced by `git diff-index`
class Entry
PATTERN = /^
:(?<src_mode>\d+)\s

View file

@ -6,6 +6,8 @@ require 'format-staged/entry'
require 'format-staged/io'
require 'shellwords'
##
# Runs staged changes through a formatting tool
class FormatStaged
attr_reader :formatter, :patterns, :update, :write, :verbose