Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
huffman
main
Huffman
Element
Par
Built with Crystal 1.9.2
2023-10-07 15:31:45 UTC
class
Huffman::Element
Huffman::Element
Reference
Object
Defined in:
huffman.cr
Constructors
.new
(sym : Char, fr : Float64)
Instance Method Summary
#+
(e : Element)
#ch
: Array(Huffman::Element)
#ch=
(ch : Array(Huffman::Element))
#fr
: Float64
#sym
: Char
Constructor Detail
def self.
new
(sym : Char, fr : Float64)
#
[
View source
]
Instance Method Detail
def
+
(e :
Element
)
#
[
View source
]
def
ch
: Array(
Huffman::Element
)
#
[
View source
]
def
ch=
(ch : Array(
Huffman::Element
))
#
[
View source
]
def
fr
: Float64
#
[
View source
]
def
sym
: Char
#
[
View source
]