Class: Fixnum

Inherits:
Object show all
Defined in:
lib/rbcurse/core/system/window.rb,
lib/rbcurse/core/widgets/rwidget.rb

Overview

@layout.ifzero(FFI::NCurses::LINES-2)

Instance Method Summary collapse

Instance Method Details

#getbyte(n) ⇒ Object



126
127
128
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 126

def getbyte(n)
  self
end

#ifzero(v) ⇒ Object



25
26
27
28
# File 'lib/rbcurse/core/system/window.rb', line 25

def ifzero v
  return self if self != 0
  return v
end

#ordObject



122
123
124
# File 'lib/rbcurse/core/widgets/rwidget.rb', line 122

def ord
  self
end