class RemindMe::Reminder::BaseReminder

Attributes

reminder_comment_ast[R]
source_location[R]

Public Class Methods

inherited(base) click to toggle source
Calls superclass method
# File lib/remind_me/reminder/base_reminder.rb, line 13
def self.inherited(base)
  RemindMe::Reminder::Generator.register(base)
  super(base)
end
new(reminder_comment_ast, source_location) click to toggle source
# File lib/remind_me/reminder/base_reminder.rb, line 36
def initialize(reminder_comment_ast, source_location)
  @reminder_comment_ast = reminder_comment_ast
  @source_location = source_location
end

Public Instance Methods

conditions_met?() click to toggle source
# File lib/remind_me/reminder/base_reminder.rb, line 18
def conditions_met?
  raise NotImplementedError
end
inspect() click to toggle source
# File lib/remind_me/reminder/base_reminder.rb, line 26
def inspect
  "#<#{self.class}, source: #{source_location}>"
end
message() click to toggle source
# File lib/remind_me/reminder/base_reminder.rb, line 30
def message
  "#{hash_message} at #{source_location}"
end
validation_errors() click to toggle source
# File lib/remind_me/reminder/base_reminder.rb, line 22
def validation_errors
  []
end