lib/residence/summarization.rb in residence-0.0.14 vs lib/residence/summarization.rb in residence-0.0.15

- old
+ new

@@ -1,12 +1,9 @@ # sabshere 8/15/10 should this just be required in the emitter gem's lib/emitter.rb? -require 'summary_judgement' - module BrighterPlanet module Residence module Summarization def self.included(base) - base.extend SummaryJudgement base.summarize do |has| has.adjective lambda { |residence| "#{residence.rooms}-room" }, :if => :rooms has.identity [:residence_class, :name], :if => :residence_class has.identity has.modifier lambda { |residence| "in #{residence.zip_code.description_with_state_name}"}, :if => :zip_code