lib/signore/signature.rb in signore-0.3.0 vs lib/signore/signature.rb in signore-0.3.1
- old
+ new
@@ -1,10 +1,10 @@
require 'lovely_rufus'
module Signore
- Signature = Struct.new(*%i(author source subject tags text)) do
+ Signature = Struct.new(*%i(text author source subject tags)) do
def initialize(author: nil, source: nil, subject: nil, tags: nil, text: nil)
- super author, source, subject, tags, text
+ 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)