Sha256: e43814504df574c5de8173e89ed52ec77661e477782f9e74eeec7a05261aaef8

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Qlang
  module Api
    module ListApi
      def execute(arys)
        case $meta_info.lang
        when :r
          combineds_by_equal = arys.map { |ary| "#{ary[0]}=#{ary[1]}" }.join(', ')
          "list(#{combineds_by_equal})"
        else
          fail "List 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/list_api.rb