Module: Hilbert::Api::ListApi
- Defined in:
- lib/hilbert/api/list_api.rb
Class Method Summary collapse
Class Method Details
.execute(arys) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/hilbert/api/list_api.rb', line 4 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 #{$meta_info.lang_str}" end end |