Class: Pikuri::Sanitizer::Warning

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

Overview

One reason a piece of text was flagged, for a chrome to render its own way.

  • kind — a Symbol: :backspace, :control_bytes, :bidi, :zero_width, or :mixed_script.
  • offenders — the distinct offending tokens, first-seen order: escaped forms (+"\x1b"+, "\\u{202e}") for byte categories, raw tokens (+"Pаypal"+) for :mixed_script.
  • explanation — a one-line chrome-agnostic summary.

Instance Attribute Summary collapse

Instance Attribute Details

#explanationObject (readonly)

Returns the value of attribute explanation

Returns:

  • (Object)

    the current value of explanation



51
52
53
# File 'lib/pikuri/sanitizer.rb', line 51

def explanation
  @explanation
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



51
52
53
# File 'lib/pikuri/sanitizer.rb', line 51

def kind
  @kind
end

#offendersObject (readonly)

Returns the value of attribute offenders

Returns:

  • (Object)

    the current value of offenders



51
52
53
# File 'lib/pikuri/sanitizer.rb', line 51

def offenders
  @offenders
end