Class: Laser::Warning

Inherits:
Struct
  • Object
show all
Defined in:
lib/laser/warning.rb

Direct Known Subclasses

FileWarning, LineWarning

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) body

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



2
3
4
# File 'lib/laser/warning.rb', line 2

def body
  @body
end

- (Object) file

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



2
3
4
# File 'lib/laser/warning.rb', line 2

def file
  @file
end

- (Object) line_number

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



2
3
4
# File 'lib/laser/warning.rb', line 2

def line_number
  @line_number
end

- (Object) name

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/laser/warning.rb', line 2

def name
  @name
end

- (Object) severity

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



2
3
4
# File 'lib/laser/warning.rb', line 2

def severity
  @severity
end