Sha256: 5515489358dbd7d07f5ee4806302cba15d8ff2949b821af5cc58fcd6859116a9
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
module Qlang module Api module SigmaApi def self.execute(formula, var, from, to) case $meta_info.lang # TODO: I know what you want to say. when :ruby "temp_cal_f(#{var}) <= #{formula}; (#{from}..#{to}).inject(0) {|sum, i| sum+=temp_cal_f(i) }" else fail "List is not implemented for #{$meta_info.lang_str}" end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
hilbert-0.0.2700000 | lib/qlang/api/sigma_api.rb |
qlang-0.0.27182124 | lib/qlang/api/sigma_api.rb |