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



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

def body
  @body
end

- (Object) file

Returns the value of attribute 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



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

def line_number
  @line_number
end

- (Object) name

Returns the value of attribute name



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

def name
  @name
end

- (Object) severity

Returns the value of attribute severity



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

def severity
  @severity
end