Class: Overcommit::Hook::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/overcommit/hook/base.rb

Overview

Helper containing metadata about error/warning messages returned by hooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



7
8
9
# File 'lib/overcommit/hook/base.rb', line 7

def content
  @content
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



7
8
9
# File 'lib/overcommit/hook/base.rb', line 7

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



7
8
9
# File 'lib/overcommit/hook/base.rb', line 7

def line
  @line
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



7
8
9
# File 'lib/overcommit/hook/base.rb', line 7

def type
  @type
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/overcommit/hook/base.rb', line 8

def to_s
  content
end