Sha256: 3e0856a8e74e952e774dc5aa5e1df1201cd5153f518a6be9f1780da41d60a66e
Contents?: true
Size: 612 Bytes
Versions: 18
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true generator = Genesis.generator generator.build_render(:html_smooth) do |value| formated_params = case value when Array properties = [] value.each do |param| properties << "#{param}px" end properties.join(' ').to_s when Integer "#{value}px" else value end @html_object.style['border-radius'] = formated_params unless @html_type == :style end
Version data entries
18 entries across 18 versions & 1 rubygems