Sha256: 3e95826b4476ae4e8c006d957a27cc1a5a0857dbfc5b2089330b611a289af752
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 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 #{LANGS_HASH[$meta_info.lang.to_s]}" end end module_function :execute end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qlang-0.0.27182000 | lib/qlang/api/func_api.rb |