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

Version Path
qlang-0.0.27182123 lib/qlang/api/func_api.rb
qlang-0.0.27182122 lib/qlang/api/func_api.rb
qlang-0.0.27182121 lib/qlang/api/func_api.rb
qlang-0.0.27182120 lib/qlang/api/func_api.rb
qlang-0.0.27182110 lib/qlang/api/func_api.rb
qlang-0.0.27182100 lib/qlang/api/func_api.rb