Class: RuboCop::Schema::AsciiDoc::Cop

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from RuboCop::Schema::AsciiDoc::Base

Instance Attribute Details

#attributesArray<Attribute> (readonly)



21
22
23
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 21

def attributes
  @attributes
end

#descriptionString (readonly)



12
13
14
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 12

def description
  @description
end

#enabled_by_defaultTrueClass, FalseClass (readonly)



15
16
17
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 15

def enabled_by_default
  @enabled_by_default
end

#nameString (readonly)



9
10
11
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 9

def name
  @name
end

#supports_autocorrectTrueClass, FalseClass (readonly)



18
19
20
# File 'lib/rubocop/schema/ascii_doc/cop.rb', line 18

def supports_autocorrect
  @supports_autocorrect
end

Instance Method Details

#to_hObject



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