Class: Pikuri::Sanitizer::Warning
- Inherits:
-
Data
- Object
- Data
- Pikuri::Sanitizer::Warning
- 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
-
#explanation ⇒ Object
readonly
Returns the value of attribute explanation.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#offenders ⇒ Object
readonly
Returns the value of attribute offenders.
Instance Attribute Details
#explanation ⇒ Object (readonly)
Returns the value of attribute explanation
51 52 53 |
# File 'lib/pikuri/sanitizer.rb', line 51 def explanation @explanation end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
51 52 53 |
# File 'lib/pikuri/sanitizer.rb', line 51 def kind @kind end |
#offenders ⇒ Object (readonly)
Returns the value of attribute offenders
51 52 53 |
# File 'lib/pikuri/sanitizer.rb', line 51 def offenders @offenders end |