Class: BigEndianGuard

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

Overview

Despite that these are inverses, the two classes are used to simplify MSpec guard reporting modes

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)


12
13
14
# File 'lib/mspec/guards/endian.rb', line 12

def match?
  pattern[-1] == ?\001
end