Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
calculator
master
Calculator
Function
Operator
Built with Crystal 1.9.2
2023-10-07 11:07:22 UTC
class
Calculator::Operator
Calculator::Operator
Reference
Object
Defined in:
calculator.cr
Constructors
.new
(symbol : Char, priority : Int32, pos : Int32)
Instance Method Summary
#pos
: Int32
#pos=
(pos : Int32)
#priority
: Int32
#priority=
(priority : Int32)
#symbol
: Char
#symbol=
(symbol : Char)
Constructor Detail
def self.
new
(symbol : Char, priority : Int32, pos : Int32)
#
[
View source
]
Instance Method Detail
def
pos
: Int32
#
[
View source
]
def
pos=
(pos : Int32)
#
[
View source
]
def
priority
: Int32
#
[
View source
]
def
priority=
(priority : Int32)
#
[
View source
]
def
symbol
: Char
#
[
View source
]
def
symbol=
(symbol : Char)
#
[
View source
]