Class: Pikuri::Sanitizer::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/sanitizer.rb

Overview

The output of sanitize.

  • text — the neutralized string, safe to print literally.
  • warnings — Array<Warning>, empty when nothing was flagged.

Instance Attribute Summary collapse

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



57
58
59
# File 'lib/pikuri/sanitizer.rb', line 57

def text
  @text
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



57
58
59
# File 'lib/pikuri/sanitizer.rb', line 57

def warnings
  @warnings
end