module Emotions::Emotive::ClassMethods
@private
Public Instance Methods
define_emotion_methods(emotion)
click to toggle source
# File lib/emotions/emotive.rb, line 24 def define_emotion_methods(emotion) class_eval <<-RUBY, __FILE__, __LINE__ + 1 def #{emotion}_about emotions.where(emotion: #{emotion.to_s.inspect}) end alias #{emotion}_with #{emotion}_about alias #{emotion}_over #{emotion}_about RUBY end