Class: TwistyPuzzles::Commutator
- Inherits:
-
Object
- Object
- TwistyPuzzles::Commutator
- Defined in:
- lib/twisty_puzzles/commutator.rb
Overview
Base class for Commutators.
Direct Known Subclasses
CommutatorSequence, FakeCommutator, PureCommutator, SetupCommutator
Instance Method Summary collapse
Instance Method Details
#algorithm ⇒ Object
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 |