lib/signore/signature.rb in signore-0.2.0 vs lib/signore/signature.rb in signore-0.2.1

- old
+ new

@@ -1,10 +1,10 @@ -module Signore Signature = Struct.new(*%i[text author source subject tags]) do +module Signore Signature = Struct.new(*%i(text author source subject tags)) do class << self undef :[] end - def self.[](author: nil, source: nil, subject: nil, tags: nil, text: nil) + def self.[] author: nil, source: nil, subject: nil, tags: nil, text: nil new text, author, source, subject, tags end def tagged_with? tag tags and tags.include? tag