class GreenMidget::Features
Public Instance Methods
feature()
click to toggle source
# File lib/green_midget/models/features.rb, line 20 def feature key.gsub(/(^#{self.class.prefix})|(::\w+_count$)/, '') end
probability_for(category)
click to toggle source
# File lib/green_midget/models/features.rb, line 16 def probability_for(category) self[category] / Examples[feature][category] end