Class: Rails::HTML::Scrubber
- Inherits:
-
Object
- Object
- Rails::HTML::Scrubber
- Defined in:
- lib/wasmify/rails/shims/rails-html-sanitizer.rb
Constant Summary collapse
- CONTINUE =
Object.new.freeze
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#prune ⇒ Object
readonly
Returns the value of attribute prune.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize ⇒ Scrubber
constructor
A new instance of Scrubber.
- #scrub(node) ⇒ Object
Constructor Details
#initialize ⇒ Scrubber
Returns a new instance of Scrubber.
9 10 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 9 def initialize(**) end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 6 def attributes @attributes end |
#prune ⇒ Object (readonly)
Returns the value of attribute prune.
7 8 9 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 7 def prune @prune end |
#tags ⇒ Object
Returns the value of attribute tags.
6 7 8 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 6 def @tags end |
Instance Method Details
#scrub(node) ⇒ Object
12 |
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 12 def scrub(node) = CONTINUE |