Class: SBOM::CycloneDX::Field::ConstBase

Inherits:
Base
  • Object
show all
Defined in:
lib/sbom/cyclone_dx/field.rb

Instance Attribute Summary

Attributes inherited from Base

#errors, #value

Instance Method Summary collapse

Methods inherited from Base

const?, default, default?, required?, #valid?, #value?

Constructor Details

#initializeConstBase

rubocop:disable Lint/MissingSuper



71
72
73
74
75
76
77
# File 'lib/sbom/cyclone_dx/field.rb', line 71

def initialize # rubocop:disable Lint/MissingSuper
  raise "Cannot instantiate abstract Field" unless self.class < ConstBase

  @errors = []
  @value_set = true
  @value = const
end