class Aoc2022::Day7::Dir

Defined in:

aoc2022/days/day7.cr

Constructors

Instance Method Summary

Instance methods inherited from class Aoc2022::Day7::File

fullname : String fullname, fullname=(fullname : String) fullname=, name : String name, parent : Aoc2022::Day7::File? parent, parent=(parent : Aoc2022::Day7::File | Nil) parent=, print(index : Int32 = 0) print, size : Int32 size

Constructor methods inherited from class Aoc2022::Day7::File

new(name : String, size : Int32) new

Constructor Detail

def self.new(name : String) #

[View source]

Instance Method Detail

def [](name : String) : Dir | File #

[View source]
def add_child(child : Dir | File) #

[View source]
def children : Array(Aoc2022::Day7::File) #

[View source]
def dir? #

[View source]
def print(index : Int32 = 0) #

[View source]
def recurse_folders_sizes : Hash(String, Int32) #

[View source]