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

#bodyObject

Returns the value of attribute body



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

def body
  @body
end

#colObject

Returns the value of attribute col



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

def col
  @col
end

#lineObject

Returns the value of attribute line



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

def line
  @line
end