Sha256: 6093544320655b2a085d1750f57fbb9c45f04d43a6c6f0106e6a955383612727
Contents?: true
Size: 935 Bytes
Versions: 13
Compression:
Stored size: 935 Bytes
Contents
# frozen_string_literal: true generator = Genesis.generator generator.build_render(:browser_width) do |value| # aa=BrowserHelper.value_parse(value) # # alert "value_parse : #{aa}"≈ # alert "#{value} : #{value.class} : value_parse : #{aa}" # @browser_object.style[:width] = if value.instance_of? String # value # else # "#{value}px" # end @browser_object.style[:width] = BrowserHelper.value_parse(value) end generator.build_render(:browser_height) do |value| # @browser_object.style[:height] = if value.instance_of? String # value # else # "#{value}px" # end @browser_object.style[:height] = BrowserHelper.value_parse(value) end
Version data entries
13 entries across 13 versions & 1 rubygems