Class: Overcommit::Hook::Message
- Inherits:
-
Struct
- Object
- Struct
- Overcommit::Hook::Message
- Defined in:
- lib/overcommit/hook/base.rb
Overview
Helper containing metadata about error/warning messages returned by hooks.
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
9 10 11 |
# File 'lib/overcommit/hook/base.rb', line 9 def content @content end |
#file ⇒ Object
Returns the value of attribute file
9 10 11 |
# File 'lib/overcommit/hook/base.rb', line 9 def file @file end |
#line ⇒ Object
Returns the value of attribute line
9 10 11 |
# File 'lib/overcommit/hook/base.rb', line 9 def line @line end |
#type ⇒ Object
Returns the value of attribute type
9 10 11 |
# File 'lib/overcommit/hook/base.rb', line 9 def type @type end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/overcommit/hook/base.rb', line 10 def to_s content end |