class SyntaxTree::Index::FileComments::Parser

We use the ripper library to pull out source comments.

Attributes

comments[R]

Public Class Methods

new(*) click to toggle source
Calls superclass method
# File lib/syntax_tree/index.rb, line 103
def initialize(*)
  super
  @comments = {}
end

Public Instance Methods

on_comment(value) click to toggle source
# File lib/syntax_tree/index.rb, line 108
def on_comment(value)
  comments[lineno] = value.chomp
end