Class: GdbAction

Inherits:
ActionFilter show all
Defined in:
lib/extensions/mspec/mspec/runner/actions/gdb.rb

Instance Method Summary collapse

Methods inherited from ActionFilter

#===, #initialize, #load

Constructor Details

This class inherits a constructor from ActionFilter

Instance Method Details

#before(state) ⇒ Object



4
5
6
# File 'lib/extensions/mspec/mspec/runner/actions/gdb.rb', line 4

def before(state)
  Kernel.yield_gdb(true) if self === state.description
end

#registerObject



8
9
10
11
# File 'lib/extensions/mspec/mspec/runner/actions/gdb.rb', line 8

def register
  super
  MSpec.register :before, self
end

#unregisterObject



13
14
15
16
# File 'lib/extensions/mspec/mspec/runner/actions/gdb.rb', line 13

def unregister
  super
  MSpec.unregister :before, self
end