Sha256: 2105f130a63d41505bc80da54ba3ed3424fa3a84366b37815b271e0c3698a2ec
Contents?: true
Size: 343 Bytes
Versions: 3
Compression:
Stored size: 343 Bytes
Contents
module Defekt class Base include Assertions [:before, :after].each { |methot| define_method(methot) {} } def self.children @children ||= [] end def self.descendants children + children.flat_map(&:descendants) end private def self.inherited(klass) children.push(klass) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
defekt-0.0.6 | lib/defekt/base.rb |
defekt-0.0.5 | lib/defekt/base.rb |
defekt-0.0.4 | lib/defekt/base.rb |