Class: ParsePackwerk::Violation

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/parse_packwerk/violation.rb

Instance Method Summary collapse

Instance Method Details

#dependency?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/parse_packwerk/violation.rb', line 13

def dependency?
  type == 'dependency'
end

#privacy?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/parse_packwerk/violation.rb', line 18

def privacy?
  type == 'privacy'
end