Module: Lich::Util::TextStripper::Mode
- Defined in:
- documented/util/textstripper.rb
Overview
Enumeration of stripping modes
Provides a type-safe way to specify which type of content stripping to perform. Each mode is represented as a symbol constant.
Constant Summary collapse
- HTML =
Strip HTML tags
:html- XML =
Strip XML tags
:xml- MARKUP =
Strip Markdown/markup formatting
:markup- MARKDOWN =
Alias for MARKUP (both :markup and :markdown are accepted)
:markdown- ALL =
All valid modes
[HTML, XML, MARKUP, MARKDOWN].freeze
Class Method Summary collapse
-
.list ⇒ String
Get a human-readable list of valid modes.
-
.valid?(mode) ⇒ Boolean
Check if a mode is valid.