Sha256: 1124ea156a26c9b84f36219f26911a1eb9051795912cc011c84c343f2f18c5f5
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
hilbert-0.0.2700000 | lib/qlang/api/func_api.rb |
qlang-0.0.27182124 | lib/qlang/api/func_api.rb |