Class: SupportedGuard

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

Instance Attribute Summary

Attributes inherited from SpecGuard

#name

Instance Method Summary collapse

Methods inherited from SpecGuard

#add, clear, clear_guards, finish, guards, #initialize, #record, report, #report_key, #reporting?, ruby_version, #run_if, #run_unless, #unregister, #yield?

Constructor Details

This class inherits a constructor from SpecGuard

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


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

def match?
  if @parameters.include? :ruby
    raise Exception, "improper use of not_supported_on guard"
  end
  !PlatformGuard.standard? and PlatformGuard.implementation?(*@parameters)
end