module DailyAffirmation
Constants
- OptionError
- VERSION
Public Class Methods
affirmations()
click to toggle source
Include DailyAffirmation.affirmations
to make your object a validator.
# File lib/daily_affirmation.rb, line 21 def self.affirmations Module.new do def self.included(descendant) descendant.send(:include, ::DailyAffirmation::Affirmations) end end end
included(descendant)
click to toggle source
# File lib/daily_affirmation.rb, line 23 def self.included(descendant) descendant.send(:include, ::DailyAffirmation::Affirmations) end