Module: Popstar::Popularity

Included in:
PopularityRules
Defined in:
lib/popstar/popularity.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
# File 'lib/popstar/popularity.rb', line 3

def self.included(base)
  base.send :include, Singleton
end

Instance Method Details

#popularity_for(target, &block) ⇒ Object



7
8
9
# File 'lib/popstar/popularity.rb', line 7

def popularity_for(target, &block)
  RuleGroup.new(target, &block)
end