Class: Rails::HTML::Scrubber

Inherits:
Object
  • Object
show all
Defined in:
lib/wasmify/rails/shims/rails-html-sanitizer.rb

Constant Summary collapse

CONTINUE =
Object.new.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScrubber

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

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 6

def attributes
  @attributes
end

#pruneObject (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

#tagsObject

Returns the value of attribute tags.



6
7
8
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 6

def tags
  @tags
end

Instance Method Details

#scrub(node) ⇒ Object



12
# File 'lib/wasmify/rails/shims/rails-html-sanitizer.rb', line 12

def scrub(node) = CONTINUE