Class: Mementus::Direction
- Inherits:
-
Object
- Object
- Mementus::Direction
- Defined in:
- lib/mementus/direction.rb
Constant Summary collapse
- IN =
:in- OUT =
:out- BOTH =
:both
Class Method Summary collapse
Class Method Details
.flip(direction) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/mementus/direction.rb', line 7 def self.flip(direction) case direction when IN then OUT when OUT then IN else BOTH end end |