Class: RuboCop::Schema::AsciiDoc::Cop
- Inherits:
-
Base
- Object
- Base
- RuboCop::Schema::AsciiDoc::Cop
show all
- Defined in:
- lib/rubocop/schema/ascii_doc/cop.rb
Constant Summary
collapse
- ATTRS =
public_instance_methods(false).freeze
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Methods included from Helpers
#boolean, #deep_dup, #deep_merge, #http_get, #strip_html, #template, templates
Instance Attribute Details
#attributes ⇒ Array<Attribute>
21
22
23
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 21
def attributes
@attributes
end
|
#description ⇒ String
12
13
14
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 12
def description
@description
end
|
#enabled_by_default ⇒ TrueClass, FalseClass
15
16
17
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 15
def enabled_by_default
@enabled_by_default
end
|
#name ⇒ String
9
10
11
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 9
def name
@name
end
|
#supports_autocorrect ⇒ TrueClass, FalseClass
18
19
20
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 18
def supports_autocorrect
@supports_autocorrect
end
|
Instance Method Details
#to_h ⇒ Object
25
26
27
|
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 25
def to_h
ATTRS.map { |k| [k, __send__(k)] }.to_h
end
|