Sha256: a1ca111ddf64e848fe6ec40559cdbe62c583fcba176c9a2571b3b738d9be756a
Contents?: true
Size: 606 Bytes
Versions: 90
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true module SassC module Script module ValueConversion SEPARATORS = { space: :sass_space, comma: :sass_comma } class List < Base def to_native list = @value.to_a sep = SEPARATORS.fetch(@value.separator) native_list = Native::make_list(list.size, sep) list.each_with_index do |item, index| native_item = ValueConversion.to_native(item) Native::list_set_value(native_list, index, native_item) end native_list end end end end end
Version data entries
90 entries across 75 versions & 6 rubygems