Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/mathn.rb,
lib/rational.rb,
lib/rexml/xpath_parser.rb
Instance Method Summary (collapse)
- - (Object) **(other) (also: #power!, #rpower)
- - (Object) dclone
Instance Method Details
- (Object) **(other) Also known as: power!, rpower
30 31 32 33 34 35 36 |
# File 'lib/mathn.rb', line 30 def ** (other) if self < 0 && other.round != other Complex(self, 0.0) ** other else power!(other) end end |
- (Object) dclone
16 |
# File 'lib/rexml/xpath_parser.rb', line 16 def dclone ; self ; end |