Sha256: 13b7334751e73dda571f7d20ad04b51bd02feed1f6d545f895300348be267e15
Contents?: true
Size: 421 Bytes
Versions: 4
Compression:
Stored size: 421 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182123 | lib/qlang/api/sigma_api.rb |
qlang-0.0.27182122 | lib/qlang/api/sigma_api.rb |
qlang-0.0.27182121 | lib/qlang/api/sigma_api.rb |
qlang-0.0.27182120 | lib/qlang/api/sigma_api.rb |