class SyntaxTree::Index::FileComments::FileSource

This represents the Ruby source in the form of a file. When it needs to be read we’ll read the file.

Attributes

filepath[R]

Public Class Methods

new(filepath) click to toggle source
# File lib/syntax_tree/index.rb, line 118
def initialize(filepath)
  @filepath = filepath
end

Public Instance Methods

source() click to toggle source
# File lib/syntax_tree/index.rb, line 122
def source
  File.read(filepath)
end