Class: SBOM::CycloneDX::Field::ConstBase
- Defined in:
- lib/sbom/cyclone_dx/field.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ ConstBase
constructor
rubocop:disable Lint/MissingSuper.
Methods inherited from Base
const?, default, default?, required?, #valid?, #value?
Constructor Details
#initialize ⇒ ConstBase
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 |