Class: Integer
- Defined in:
- lib/canis/core/util/extras/padreader.rb,
lib/canis/core/widgets/rwidget.rb
Overview
this is since often windows are declared with 0 height or width and this causes crashes in the most unlikely places. This prevceents me from having to write ternary e.g.
@layout[:width].ifzero(FFI::NCurses::LINES-2)
Instance Method Summary collapse
Instance Method Details
#getbyte(n) ⇒ Object
55 56 57 |
# File 'lib/canis/core/widgets/rwidget.rb', line 55 def getbyte(n) self end |
#ifzero(v) ⇒ Object
22 23 24 25 |
# File 'lib/canis/core/util/extras/padreader.rb', line 22 def ifzero v return self if self != 0 return v end |
#ord ⇒ Object
51 52 53 |
# File 'lib/canis/core/widgets/rwidget.rb', line 51 def ord self end |