Sha256: d8b45fea192e98d70e5b5a4120db6b5324c2140a43c0004db28fb78ee2a3e3c0
Contents?: true
Size: 444 Bytes
Versions: 6
Compression:
Stored size: 444 Bytes
Contents
module Qlang module Api module FuncApi def execute(func_name, args, contents) case $meta_info.lang when :r "#{func_name} <- function(#{ args.join(' ,') }) #{contents}" when :ruby "#{func_name}(#{ args.join(' ,') }) <= #{contents}" else fail "Function is not implemented for #{$meta_info.lang_str}" end end module_function :execute end end end
Version data entries
6 entries across 6 versions & 1 rubygems