Sha256: e9634922db301381f971ca33cd9ec904f1804b7caf1abf76dd6423a788d10d50
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
require "virtus" module Rubycritic class AnalysedFile include Virtus.model attribute :pathname attribute :smells attribute :churn attribute :complexity def name pathname.basename.sub_ext("").to_s end def has_smells? !smells.empty? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.14 | lib/rubycritic/core/analysed_file.rb |
rubycritic-0.0.13 | lib/rubycritic/core/analysed_file.rb |