class Integer
crashes in the most unlikely places. This prevceents me from having to write ternary e.g.
@layout[:width].ifzero(FFI::NCurses::LINES-2)
Public Instance Methods
getbyte(n)
click to toggle source
mostly for control and meta characters
# File lib/canis/core/widgets/rwidget.rb, line 55 def getbyte(n) self end
ifzero(v)
click to toggle source
# File lib/canis/core/util/extras/padreader.rb, line 22 def ifzero v return self if self != 0 return v end
ord()
click to toggle source
# File lib/canis/core/widgets/rwidget.rb, line 51 def ord self end