Class: HappyMapperTools::StigAttributes::DescriptionDetailsType
- Defined in:
- lib/happy_mapper_tools/stig_attributes.rb
Class Method Summary collapse
Class Method Details
.apply(value) ⇒ Object
159 160 161 162 163 164 165 166 167 168 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 159 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
170 171 172 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 170 def apply?(value, _convert_to_type) value.is_a?(String) end |
.type ⇒ Object
155 156 157 |
# File 'lib/happy_mapper_tools/stig_attributes.rb', line 155 def type DescriptionDetails end |