Class: SupportedGuard

Inherits:
SpecGuard show all
Defined in:
lib/mspec/guards/support.rb

Instance Method Summary collapse

Methods inherited from SpecGuard

#===, #after, #before, finish, #implementation?, #initialize, #os?, #platform?, register, ruby_version, #standard?, unregister, #unregister, #windows?, windows?, #wordsize?, #yield?

Constructor Details

This class inherits a constructor from SpecGuard

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)

Raises:

  • (Exception)


4
5
6
7
8
# File 'lib/mspec/guards/support.rb', line 4

def match?
  match = implementation?(*@args)
  raise Exception, "improper use of not_supported_on guard" if match and standard?
  match
end