Module: Shamu::Entities::HtmlSanitation::AttributeMethod
- Included in:
- Shamu::Entities::HtmlSanitation
- Defined in:
- lib/shamu/entities/html_sanitation.rb
Instance Method Summary collapse
-
#attribute(name, *args, **options, &block) ⇒ self
Define a new attribute for the class.
Instance Method Details
#attribute(name, on: , default: , build: , &block) ⇒ self #attribute(name, build, on: , default: , &block) ⇒ self
Define a new attribute for the class.
15 16 17 18 19 |
# File 'lib/shamu/entities/html_sanitation.rb', line 15 def attribute( name, *args, **, &block ) [:html] ||= :none super name, *args, **, &block end |