Parent

Methods

Class/Module Index [+]

Quicksearch

Reek::Source::SourceFile

Represents a file of Ruby source, whose contents will be examined for code smells.

Public Class Methods

new(path) click to toggle source
# File lib/reek/source/source_file.rb, line 12
def initialize(path)
  @path = path
  super(IO.readlines(@path).join, @path)
end

Public Instance Methods

configure(sniffer) click to toggle source
# File lib/reek/source/source_file.rb, line 17
def configure(sniffer)
  path = File.expand_path(File.dirname(@path))
  all_config_files(path).each { |cf| ConfigFile.new(cf).configure(sniffer) }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.