Sha256: d51fb34c63246bc2ae6c71b0d5032d6d09ed84e1ae7ac5db06e353330015ffdb

Contents?: true

Size: 327 Bytes

Versions: 12

Compression:

Stored size: 327 Bytes

Contents

require 'reek/source/source_code'

module Reek
  module Source
    #
    # Represents a file of Ruby source, whose contents will be examined
    # for code smells.
    #
    class SourceFile < SourceCode
      def initialize(path)
        @path = path
        super(IO.readlines(@path).join, @path)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reek-2.0.4 lib/reek/source/source_file.rb
reek-2.0.3 lib/reek/source/source_file.rb
reek-2.0.2 lib/reek/source/source_file.rb
reek-2.0.1 lib/reek/source/source_file.rb
reek-2.0.0 lib/reek/source/source_file.rb
reek-1.6.6 lib/reek/source/source_file.rb
reek-1.6.5 lib/reek/source/source_file.rb
reek-1.6.4 lib/reek/source/source_file.rb
reek-1.6.3 lib/reek/source/source_file.rb
reek-1.6.2 lib/reek/source/source_file.rb
reek-1.6.1 lib/reek/source/source_file.rb
reek-1.6.0 lib/reek/source/source_file.rb