Class: Defekt::Base

Inherits:
Object show all
Includes:
Assertions
Defined in:
lib/defekt/base.rb

Class Method Summary collapse

Methods included from Assertions

#equal_to!, #identical_to!, #included_in!, #instance_of!, #kind_of!, #not_equal_to!, #not_identical_to!, #not_included_in!, #not_instance_of!, #not_kind_of!, #not_respond_to!, #not_true!, #respond_to!, #true!

Class Method Details

.childrenObject



7
8
9
# File 'lib/defekt/base.rb', line 7

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

.descendantsObject



11
12
13
# File 'lib/defekt/base.rb', line 11

def self.descendants
  children + children.flat_map(&:descendants)
end