Sha256: 9d5323fa5d2630e690665318f512f5b74fb4b7738156c9dd56e5f23231cf257d

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

generator = Genesis.generator

generator.build_render_method(: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

3 entries across 3 versions & 1 rubygems

Version Path
atome-0.5.1.9 lib/atome/renderers/html/effect.rb
atome-0.5.1.4 lib/atome/renderers/html/effect.rb
atome-0.5.1.1 lib/atome/renderers/html/effect.rb