lib/signore/signature.rb in signore-0.3.3 vs lib/signore/signature.rb in signore-0.4.0

- old
+ new

@@ -5,13 +5,9 @@ def initialize(author: nil, source: nil, subject: nil, tags: nil, text: nil) super text, author, source, subject, tags each_pair { |key, value| self[key] = nil if value and value.empty? } end - def tagged_with?(tag) - tags and tags.include?(tag) - end - def to_h super.map { |key, val| [key.to_s, val] }.to_h.keep_if { |_, value| value } end def to_s