Class: ComplexLikeNumeric
- Inherits:
-
UserDefinedNumeric
- Object
- Numeric
- UserDefinedNumeric
- ComplexLikeNumeric
- Defined in:
- ext/enterprise_script_service/mruby/mrbgems/mruby-rational/test/rational.rb
Instance Method Summary collapse
Methods inherited from UserDefinedNumeric
Methods inherited from Numeric
#+@, #-@, #abs, #negative?, #nonzero?, #positive?, #to_r, #zero?
Methods included from Comparable
#<, #<=, #>, #>=, #between?, #clamp
Constructor Details
This class inherits a constructor from UserDefinedNumeric
Instance Method Details
#==(rhs) ⇒ Object
18 19 20 |
# File 'ext/enterprise_script_service/mruby/mrbgems/mruby-rational/test/rational.rb', line 18 def ==(rhs) @n == 0 && rhs == 0 end |