Class: Fixnum
- Defined in:
- lib/pythonism/classes/fixnum.rb
Overview
Pythonized Fixnum class
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Pythonism::Pythonize::Numeric
#__add__, #__and__, #__float__, #__hex__, #__int__, #__long__, #__mod__, #__mul__, #__oct__, #__or__, #__sub__, #__xor__
Methods included from Pythonism::Pythonize::Basic
#__class__, #__cmp__, #__eq__, #__ge__, #__gt__, #__le__, #__list__, #__lt__, #__ne__, #__new__, #__repr__, #__str__
Class Method Details
.to_s ⇒ String
12 |
# File 'lib/pythonism/classes/fixnum.rb', line 12 def self.to_s; 'int'; end |
Instance Method Details
#__nonzero__ ⇒ Boolean
7 8 9 |
# File 'lib/pythonism/classes/fixnum.rb', line 7 def __nonzero__ self != 0 end |