Sha256: cc7866e632fc96f085b66404df6c2a55b93d381b80a44e2026ed25fcd2867270
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
module Inch module Evaluation class ConstantObject < Base DOC_SCORE = MAX_SCORE def evaluate if object.has_doc? add_role Role::Constant::WithDoc.new(object, DOC_SCORE) else add_role Role::Constant::WithoutDoc.new(object, DOC_SCORE) end if object.nodoc? add_role Role::Constant::TaggedAsNodoc.new(object) end if object.has_unconsidered_tags? count = object.unconsidered_tags.size add_role Role::Object::Tagged.new(object, TAGGED_SCORE * count) end if object.in_root? add_role Role::Constant::InRoot.new(object) end if object.public? add_role Role::Constant::Public.new(object) end if object.private? add_role Role::Constant::Private.new(object) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inch-0.1.4 | lib/inch/evaluation/constant_object.rb |