lib/qlang/api/integral_api.rb in qlang-0.0.27180000 vs lib/qlang/api/integral_api.rb in qlang-0.0.27182000
- old
+ new
@@ -1,14 +1,14 @@
module Qlang
module Api
module IntegralApi
def execute(func, delta, range)
a, b = range.split('..')
- case $type
- when :R
- fail 'Integral is not implemented for R'
- when :Ruby
+ case $meta_info.lang
+ when :ruby
"S(#{func}, #{delta})[#{a}, #{b}]"
+ else
+ fail "Integral is not implemented for #{LANGS_HASH[$meta_info.lang.to_s]}"
end
end
module_function :execute
end