Module: TwistyPuzzles::EdgeLike

Included in:
Edge, Midge, Wing
Defined in:
lib/twisty_puzzles/cube.rb

Overview

Module for methods that are common to all edge-like part classes.

Instance Method Summary collapse

Instance Method Details

#valid?(face_symbols) ⇒ Boolean

Returns:

  • (Boolean)


442
443
444
# File 'lib/twisty_puzzles/cube.rb', line 442

def valid?(face_symbols)
  CubeConstants::OPPOSITE_FACE_SYMBOLS.none? { |ss| ss.sort == face_symbols.sort }
end