module Emotions
Constants
- VERSION
Public Class Methods
acts_as_emotion()
click to toggle source
# File lib/emotions.rb, line 30 def self.acts_as_emotion send :include, Emotions::Emotion end
acts_as_emotional()
click to toggle source
# File lib/emotions.rb, line 26 def self.acts_as_emotional send :include, Emotions::Emotional end
acts_as_emotive()
click to toggle source
# File lib/emotions.rb, line 22 def self.acts_as_emotive send :include, Emotions::Emotive end
configure() { |configuration| ... }
click to toggle source
# File lib/emotions.rb, line 11 def self.configure @configuration = OpenStruct.new yield(@configuration) end
emotional?()
click to toggle source
# File lib/emotions.rb, line 34 def self.emotional? @emotional ||= ancestors.include?(Emotions::Emotional) end
emotions()
click to toggle source
# File lib/emotions.rb, line 16 def self.emotions @configuration.emotions ||= [] end
emotive?()
click to toggle source
# File lib/emotions.rb, line 38 def self.emotive? @emotive ||= ancestors.include?(Emotions::Emotive) end
inject_into_active_record()
click to toggle source
# File lib/emotions.rb, line 20 def self.inject_into_active_record @inject_into_active_record ||= proc do def self.acts_as_emotive send :include, Emotions::Emotive end def self.acts_as_emotional send :include, Emotions::Emotional end def self.acts_as_emotion send :include, Emotions::Emotion end def self.emotional? @emotional ||= ancestors.include?(Emotions::Emotional) end def self.emotive? @emotive ||= ancestors.include?(Emotions::Emotive) end end end