Sha256: 4f684507b2d9e46d229e754ba7da5450136daebec6827dd9537e8f4b1cf2a4a8
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
module Dydx module API class << self def store_func(vars, formula, symbol) func_obj = Function.new(*vars) func_obj <=(formula) eval("$#{symbol.to_s} = func_obj") end def eval_func(nums, symbol) func = eval("$#{symbol.to_s}") func.evalue(nums) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dydx-0.2.7000000 | lib/dydx/api.rb |