lib/taskwarrior/annotation.rb in taskwarrior-0.0.6 vs lib/taskwarrior/annotation.rb in taskwarrior-1.0.0
- old
+ new
@@ -1,11 +1,13 @@
+# frozen_string_literal: true
+
module TaskWarrior
class Annotation
attr_accessor :entry, :description
include ActiveModel::Validations
- validates :entry, :presence => true
- validates :description, :presence => true
+ validates :entry, presence: true
+ validates :description, presence: true
include TaskWarrior::Validations
validate :entry_cannot_be_in_the_future
def initialize(description = nil, entry = nil)