Class: TwistyPuzzles::Commutator

Inherits:
Object
  • Object
show all
Defined in:
lib/twisty_puzzles/commutator.rb

Overview

Base class for Commutators.

Instance Method Summary collapse

Instance Method Details

#algorithmObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/twisty_puzzles/commutator.rb', line 14

def algorithm
  raise NotImplementedError
end

#cancellations(other, cube_size, metric = :htm) ⇒ Object



10
11
12
# File 'lib/twisty_puzzles/commutator.rb', line 10

def cancellations(other, cube_size, metric = :htm)
  algorithm.cancellations(other.algorithm, cube_size, metric)
end