Class: RubomaticHtml::Cop::Style::NoOnLoad
- Inherits:
-
NoOnAttribute
- Object
- Base
- Base
- NoOnAttribute
- RubomaticHtml::Cop::Style::NoOnLoad
- Defined in:
- lib/rubomatic-html/cop/style/no_on_load.rb
Instance Attribute Summary
Attributes inherited from NoOnAttribute
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ NoOnLoad
constructor
A new instance of NoOnLoad.
Methods inherited from NoOnAttribute
Methods inherited from Base
Methods inherited from Base
Constructor Details
#initialize ⇒ NoOnLoad
Returns a new instance of NoOnLoad.
19 20 21 22 23 |
# File 'lib/rubomatic-html/cop/style/no_on_load.rb', line 19 def initialize(...) super(...) @html_attr = 'onload' end |
Class Method Details
.abstract_cop? ⇒ Boolean
9 10 11 |
# File 'lib/rubomatic-html/cop/style/no_on_load.rb', line 9 def abstract_cop? false end |
.name ⇒ Object
14 15 16 |
# File 'lib/rubomatic-html/cop/style/no_on_load.rb', line 14 def name [department, 'NoOnLoad'].join('/') end |