Class: Guardrails::CrossCodebasePatterns::Pattern

Inherits:
Struct
  • Object
show all
Defined in:
lib/guardrails/cross_codebase_patterns.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fingerprintObject

Returns the value of attribute fingerprint

Returns:

  • (Object)

    the current value of fingerprint



21
22
23
# File 'lib/guardrails/cross_codebase_patterns.rb', line 21

def fingerprint
  @fingerprint
end

#occurrencesObject

Returns the value of attribute occurrences

Returns:

  • (Object)

    the current value of occurrences



21
22
23
# File 'lib/guardrails/cross_codebase_patterns.rb', line 21

def occurrences
  @occurrences
end

#shapeObject

Returns the value of attribute shape

Returns:

  • (Object)

    the current value of shape



21
22
23
# File 'lib/guardrails/cross_codebase_patterns.rb', line 21

def shape
  @shape
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



21
22
23
# File 'lib/guardrails/cross_codebase_patterns.rb', line 21

def size
  @size
end

Instance Method Details

#countObject



22
23
24
# File 'lib/guardrails/cross_codebase_patterns.rb', line 22

def count
  occurrences.length
end