Module: Rampi::CoreExt::Numeric

Included in:
Bignum, Fixnum, Float, Integer, Rational
Defined in:
lib/rampi/core_ext/numeric.rb

Instance Method Summary collapse

Instance Method Details

#!=(o) ⇒ Object



17
# File 'lib/rampi/core_ext/numeric.rb', line 17

def !=(o); o.is_a?(Node) ? BinaryExpr.new(:!=, self, o) : super(o); end

#%(o) ⇒ Object



8
# File 'lib/rampi/core_ext/numeric.rb', line 8

def %(o);  o.is_a?(Node) ? BinaryExpr.new(:%, self, o)  : super(o); end

#&(o) ⇒ Object



18
# File 'lib/rampi/core_ext/numeric.rb', line 18

def &(o);  o.is_a?(Node) ? BinaryExpr.new(:&, self, o)  : super(o); end

#*(o) ⇒ Object



6
# File 'lib/rampi/core_ext/numeric.rb', line 6

def *(o);  o.is_a?(Node) ? BinaryExpr.new(:*, self, o)  : super(o); end

#**(o) ⇒ Object



9
# File 'lib/rampi/core_ext/numeric.rb', line 9

def **(o); o.is_a?(Node) ? BinaryExpr.new(:**, self, o) : super(o); end

#+(o) ⇒ Object



4
# File 'lib/rampi/core_ext/numeric.rb', line 4

def +(o);  o.is_a?(Node) ? BinaryExpr.new(:+, self, o)  : super(o); end

#-(o) ⇒ Object



5
# File 'lib/rampi/core_ext/numeric.rb', line 5

def -(o);  o.is_a?(Node) ? BinaryExpr.new(:-, self, o)  : super(o); end

#/(o) ⇒ Object



7
# File 'lib/rampi/core_ext/numeric.rb', line 7

def /(o);  o.is_a?(Node) ? BinaryExpr.new(:/, self, o)  : super(o); end

#<(o) ⇒ Object



12
# File 'lib/rampi/core_ext/numeric.rb', line 12

def <(o);  o.is_a?(Node) ? BinaryExpr.new(:<, self, o)  : super(o); end

#<<(o) ⇒ Object



11
# File 'lib/rampi/core_ext/numeric.rb', line 11

def <<(o); o.is_a?(Node) ? BinaryExpr.new(:<<, self, o) : super(o); end

#<=(o) ⇒ Object



13
# File 'lib/rampi/core_ext/numeric.rb', line 13

def <=(o); o.is_a?(Node) ? BinaryExpr.new(:<=, self, o) : super(o); end

#==(o) ⇒ Object



16
# File 'lib/rampi/core_ext/numeric.rb', line 16

def ==(o); o.is_a?(Node) ? BinaryExpr.new(:==, self, o) : super(o); end

#>(o) ⇒ Object



14
# File 'lib/rampi/core_ext/numeric.rb', line 14

def >(o);  o.is_a?(Node) ? BinaryExpr.new(:>, self, o)  : super(o); end

#>=(o) ⇒ Object



15
# File 'lib/rampi/core_ext/numeric.rb', line 15

def >=(o); o.is_a?(Node) ? BinaryExpr.new(:>=, self, o) : super(o); end

#>>(o) ⇒ Object



10
# File 'lib/rampi/core_ext/numeric.rb', line 10

def >>(o); o.is_a?(Node) ? BinaryExpr.new(:>>, self, o) : super(o); end

#^(o) ⇒ Object



19
# File 'lib/rampi/core_ext/numeric.rb', line 19

def ^(o);  o.is_a?(Node) ? BinaryExpr.new(:^, self, o)  : super(o); end

#|(o) ⇒ Object



20
# File 'lib/rampi/core_ext/numeric.rb', line 20

def |(o);  o.is_a?(Node) ? BinaryExpr.new(:|, self, o)  : super(o); end