Class: BigEndianGuard

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

Instance Attribute Summary

Attributes inherited from SpecGuard

#name, #parameters

Instance Method Summary collapse

Methods inherited from SpecGuard

#===, #add, clear, clear_guards, finish, guards, #implementation?, #initialize, #os?, #platform?, #record, report, #report_key, #reporting?, ruby_version, #standard?, #unregister, windows?, #windows?, #wordsize?, #yield?

Constructor Details

This class inherits a constructor from SpecGuard

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/mspec/guards/endian.rb', line 14

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