class AdventOfCode2021::Day19::Scanner
- AdventOfCode2021::Day19::Scanner
- Reference
- Object
Included Modules
- Enumerable(AdventOfCode2021::Day19::Beam)
Defined in:
day19/scanner.crConstructors
Instance Method Summary
- #*(matrix : RotatingMatrix) : Scanner
- #+(add : Beam) : Scanner
- #==(other : Scanner)
-
#==(other)
Returns
false
(other can only be aValue
here). - #[](i : Int32)
- #beams : Array(AdventOfCode2021::Day19::Beam)
- #beams=(beams : Array(AdventOfCode2021::Day19::Beam))
-
#each(&)
Must yield this collection's elements to the block.
- #id : Int32
- #id=(id : Int32)
-
#size
Returns the number of elements in the collection.
Constructor Detail
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
def each(&)
#
Description copied from module Enumerable(AdventOfCode2021::Day19::Beam)
Must yield this collection's elements to the block.
def size
#
Description copied from module Enumerable(AdventOfCode2021::Day19::Beam)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4