Class: RubomaticHtml::Cop::Style::NoOnDrag

Inherits:
NoOnAttribute show all
Defined in:
lib/rubomatic-html/cop/style/no_on_drag.rb

Instance Attribute Summary

Attributes inherited from NoOnAttribute

#html_attr

Attributes inherited from Base

#config, #file

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NoOnAttribute

#run_for_line

Methods inherited from Base

department

Methods inherited from Base

allowed_config_transform

Constructor Details

#initializeNoOnDrag

Returns a new instance of NoOnDrag.



19
20
21
22
23
# File 'lib/rubomatic-html/cop/style/no_on_drag.rb', line 19

def initialize(...)
  super(...)

  @html_attr = 'ondrag'
end

Class Method Details

.abstract_cop?Boolean

Returns:

  • (Boolean)

See Also:

  • super


9
10
11
# File 'lib/rubomatic-html/cop/style/no_on_drag.rb', line 9

def abstract_cop?
  false
end

.nameObject

See Also:

  • super


14
15
16
# File 'lib/rubomatic-html/cop/style/no_on_drag.rb', line 14

def name
  [department, 'NoOnDrag'].join('/')
end