Class: MetadataCop::Offense
- Inherits:
-
Object
- Object
- MetadataCop::Offense
- Defined in:
- lib/metadatacop/offense.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #cop ⇒ Object
-
#initialize(options = {}) ⇒ Offense
constructor
A new instance of Offense.
- #message ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Offense
Returns a new instance of Offense.
5 6 7 |
# File 'lib/metadatacop/offense.rb', line 5 def initialize( = {}) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/metadatacop/offense.rb', line 3 def end |
Instance Method Details
#cop ⇒ Object
9 10 11 |
# File 'lib/metadatacop/offense.rb', line 9 def cop [:cop].to_s.sub('MetadataCop::Cop::', '').underscore end |
#message ⇒ Object
13 14 15 |
# File 'lib/metadatacop/offense.rb', line 13 def [:message] end |