Class: Git::Conform::FileNotEmptyChecker
- Inherits:
-
FileChecker
- Object
- BaseChecker
- FileChecker
- Git::Conform::FileNotEmptyChecker
- Defined in:
- lib/git/conform/checkers/file_not_empty_checker.rb
Instance Attribute Summary
Attributes inherited from BaseChecker
Instance Method Summary collapse
-
#conforms? ⇒ Boolean
.gitkeep is (by convention) an empty file.
Methods inherited from FileChecker
available_checkers, #content, #excluded?, excluded?, inherited
Methods inherited from BaseChecker
#check_conformity, #check_exclusion, #excluded?, #initialize
Constructor Details
This class inherits a constructor from Git::Conform::BaseChecker
Instance Method Details
#conforms? ⇒ Boolean
.gitkeep is (by convention) an empty file
8 9 10 |
# File 'lib/git/conform/checkers/file_not_empty_checker.rb', line 8 def conforms? super && !File.size?(@filename).nil? end |