class Rohbau::SharedSpec::SpecIndex

Public Class Methods

all() click to toggle source
# File lib/rohbau/shared_spec.rb, line 32
def self.all
  @specs.dup
end
get(name) click to toggle source
# File lib/rohbau/shared_spec.rb, line 36
def self.get(name)
  @specs.each do |spec|
    found = spec.get(name)
    return found if found
  end
  nil
end
register(shared_spec_class) click to toggle source
# File lib/rohbau/shared_spec.rb, line 27
def self.register(shared_spec_class)
  reset unless @specs
  @specs << shared_spec_class
end
reset() click to toggle source
# File lib/rohbau/shared_spec.rb, line 23
def self.reset
  @specs = []
end