Class: BugGuard

Inherits:
VersionGuard show all
Defined in:
lib/mspec/guards/bug.rb

Instance Method Summary collapse

Methods inherited from VersionGuard

#ruby_version

Methods inherited from SpecGuard

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

Constructor Details

#initialize(bug, version) ⇒ BugGuard

Returns a new instance of BugGuard.



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

def initialize(bug, version)
  @bug = bug
  @version = SpecVersion.new version, true
end

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mspec/guards/bug.rb', line 9

def match?
  standard? && ruby_version <= @version
end