Module: Voteable

Defined in:
lib/voteable_austin.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/voteable_austin.rb', line 2

def self.included(base)
  base.send(:include, InstanceMethods)
  base.extend ClassMethods
  base.class_eval do 
    my_class_method
  end
end