Class: HappyMapperTools::StigAttributes::DescriptionDetailsType
- Defined in:
- lib/happy_mapper_tools/stig_attributes.rb
Class Method Summary collapse
Class Method Details
.apply(value) ⇒ Object
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 148 def apply(value) value = value.gsub('&', 'and') DescriptionDetails.parse "<Details>#{value}</Details>" rescue Nokogiri::XML::SyntaxError => e if e.to_s.include?('StartTag') report_invalid_start_tag(value, e) else (value) end end |
.apply?(value, _convert_to_type) ⇒ Boolean
159 160 161 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 159 def apply?(value, _convert_to_type) value.is_a?(String) end |
.type ⇒ Object
144 145 146 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 144 def type DescriptionDetails end |