Sha256: 939192675e76c6808950b046e0b620bbfb583a96bf5325972bb9c1d5eae7c085
Contents?: true
Size: 314 Bytes
Versions: 1
Compression:
Stored size: 314 Bytes
Contents
module Dydx module Algebra module Operator module Parts module Interface %w(+ - * / ^).each do |operator| define_method(operator) do |x| x = _(x) if x.is_a?(Fixnum) super(x) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dydx-0.0.1 | lib/dydx/algebra/operator/parts/interface.rb |