Class: Laser::Comment

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

Overview

Comment class: basic class representing a comment extracted from the tokens in a Ruby token stream.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) body

Returns the value of attribute body



4
5
6
# File 'lib/laser/analysis/comments.rb', line 4

def body
  @body
end

- (Object) col

Returns the value of attribute col



4
5
6
# File 'lib/laser/analysis/comments.rb', line 4

def col
  @col
end

- (Object) line

Returns the value of attribute line



4
5
6
# File 'lib/laser/analysis/comments.rb', line 4

def line
  @line
end