Sha256: 48f5c3f3f363c83d401202961ddd6c5fba764cd43600e4fd5ef2e4a034309dfc
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
module Reek class SmellDescription attr_reader :smell_class, :smell_subclass, :message, :details def initialize(smell_class, smell_subclass, message, details) @smell_class = smell_class @smell_subclass = smell_subclass @message = message @details = details end def [](key) @details[key] end def encode_with coder coder.tag = nil coder['class'] = @smell_class coder['subclass'] = @smell_subclass coder['message'] = @message @details.each do |k, v| coder[k] = v end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-1.5.1 | lib/reek/smell_description.rb |
reek-1.5.0 | lib/reek/smell_description.rb |