class AoC2020::Day7::Common::Rule

Defined in:

aoc_2020/day_7/common.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(color : String, containing : Array(Tuple(Int32, String))) #

[View source]

Class Method Detail

def self.[](color) #

[View source]
def self.each #

[View source]
def self.each(&) #

[View source]
def self.parse(io : IO) #

[View source]
def self.parse_all(io : IO) #

[View source]

Instance Method Detail

def bag_count #

[View source]
def can_contain?(color) #

[View source]
def color : String #

[View source]
def each_containing(&) #

[View source]
def each_containing #

[View source]
def path_to(color) #

[View source]