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