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



77
78
79
# File 'lib/pikuri/sanitizer.rb', line 77

def text
  @text
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



77
78
79
# File 'lib/pikuri/sanitizer.rb', line 77

def warnings
  @warnings
end