class SubjectCapCheck
Constants
- MESSAGE
Public Class Methods
new(message, _options = {})
click to toggle source
# File lib/wcc/commit_lint/subject_cap_check.rb, line 10 def initialize(message, _options = {}) @first_character = message[:subject].split('').first end
type()
click to toggle source
# File lib/wcc/commit_lint/subject_cap_check.rb, line 6 def self.type :subject_cap end
Public Instance Methods
fail?()
click to toggle source
# File lib/wcc/commit_lint/subject_cap_check.rb, line 18 def fail? @first_character != @first_character.upcase end
message()
click to toggle source
# File lib/wcc/commit_lint/subject_cap_check.rb, line 14 def message MESSAGE end