Sha256: 788745b3b7dbb8908e60a5f59d8747adc3a6c8075ae335c1307b8e87a18a4b5d

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

module Defekt
  class Base
    include Assertions

    def before
    end

    def after
    end

    def self.children
      @children ||= []
    end

    def self.descendants
      children + children.map(&:descendants).flatten
    end

    private

    def self.inherited(klass)
      children.push(klass)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
defekt-0.0.2 lib/defekt/base.rb