class GBA::DMAChannels
- GBA::DMAChannels
- Reference
- Object
Defined in:
crab/gba/apu/dma_channels.crConstant Summary
-
RANGE =
160..167
Constructors
Instance Method Summary
-
#===(other) : Bool
Case equality.
- #[](address : UInt32) : UInt8
- #[]=(address : UInt32, value : UInt8) : Nil
-
#get_amplitude : Tuple(Int16, Int16)
Outputs a value -0x100...0x100
- #timer_overflow(timer : Int) : Nil
Constructor Detail
Instance Method Detail
def ===(other) : Bool
#
Description copied from class Object
Case equality.
The #===
method is used in a case ... when ... end
expression.
For example, this code:
case value
when x
# something when x
when y
# something when y
end
Is equivalent to this code:
if x === value
# something when x
elsif y === value
# something when y
end
Object simply implements #===
by invoking ==
, but subclasses
(notably Regex
) can override it to provide meaningful case-equality semantics.