Class: Spec::Example::ExampleGroupMethods::ExampleGroupHierarchy

Inherits:
Array
  • Object
show all
Defined in:
lib/gems/rspec-1.1.12/lib/spec/example/example_group_methods.rb

Constant Summary

Constants included from Diff::LCS

Diff::LCS::BalancedCallbacks, Diff::LCS::PATCH_MAP, Diff::LCS::SequenceCallbacks, Diff::LCS::VERSION

Instance Method Summary collapse

Methods included from Diff::LCS

LCS, __diff_direction, __inverse_vector, __lcs, __normalize_patchset, __position_hash, __replace_next_larger, diff, #diff, #lcs, patch, #patch, #patch!, patch!, sdiff, #sdiff, traverse_balanced, #traverse_balanced, traverse_sequences, #traverse_sequences, #unpatch, #unpatch!, unpatch!

Constructor Details

#initialize(example_group_class) ⇒ ExampleGroupHierarchy

Returns a new instance of ExampleGroupHierarchy.



321
322
323
324
325
326
327
328
# File 'lib/gems/rspec-1.1.12/lib/spec/example/example_group_methods.rb', line 321

def initialize(example_group_class)
  current_class = example_group_class
  while current_class.kind_of?(ExampleGroupMethods)
    unshift(current_class)
    break unless current_class.respond_to? :superclass
    current_class = current_class.superclass
  end
end