Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
aoc-2020
master
Aoc
Day
Day1
Day10
Day11
SeatMap
Seat
Day12
Direction
Day13
Day14
Day15
Day16
Field
Day17
CubeField
Day18
ComplexExpression
Expression
Operation
Scalar
Day19
CompoundRule
Rule
StringRule
Day2
Constraint
Day20
Collage
Image
Orientation
Day21
Day22
Day23
Day24
Day25
Day3
Day4
Passport
Day5
BoardingPass
Day6
Day7
Day8
Operation
Day9
Built with Crystal 1.9.2
2023-10-07 20:43:19 UTC
enum
Aoc::Day20::Orientation
Defined in:
day/20.cr
Enum Members
Top
=
0
Bottom
=
1
Left
=
2
Right
=
3
Class Method Summary
.all
(&)
Instance Method Summary
#bottom?
#left?
#opposite
#right?
#top?
#turn
(orientation)
#turn_left
Class Method Detail
def self.
all
(&)
#
[
View source
]
Instance Method Detail
def
bottom?
#
[
View source
]
def
left?
#
[
View source
]
def
opposite
#
[
View source
]
def
right?
#
[
View source
]
def
top?
#
[
View source
]
def
turn
(orientation)
#
[
View source
]
def
turn_left
#
[
View source
]