Sha256: e63839610fa35ad4f021eedc0028b86d2c6cb5eda27c59705c55e41febdd60b1

Contents?: true

Size: 650 Bytes

Versions: 13

Compression:

Stored size: 650 Bytes

Contents

require 'active_support'
require 'verbs'

module SummaryJudgement
  def self.extended(base)
    base.initialize_summary Summary.new(base)
    base.send :include, InstanceMethods
    def base.inherited(subclass)
      subclass.initialize_summary @summary.dup(subclass)
      super
    end
  end
  
  def summarize(&blk)
    @summary.define(&blk)
  end
  
  def summary
    @summary
  end
  
  def initialize_summary(summary)
    @summary = summary
  end
end

require 'summary_judgement/summary'
require 'summary_judgement/descriptor'
require 'summary_judgement/instance_methods'
require 'summary_judgement/core_extensions'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
summary_judgement-1.3.8 lib/summary_judgement.rb
summary_judgement-1.3.7 lib/summary_judgement.rb
summary_judgement-1.3.6 lib/summary_judgement.rb
summary_judgement-1.3.4 lib/summary_judgement.rb
summary_judgement-1.3.3 lib/summary_judgement.rb
summary_judgement-1.3.2 lib/summary_judgement.rb
summary_judgement-1.3.1 lib/summary_judgement.rb
summary_judgement-1.3.0 lib/summary_judgement.rb
summary_judgement-1.2.4 lib/summary_judgement.rb
summary_judgement-1.2.3 lib/summary_judgement.rb
summary_judgement-1.2.2 lib/summary_judgement.rb
summary_judgement-1.2.1 lib/summary_judgement.rb
summary_judgement-1.2.0 lib/summary_judgement.rb