Sha256: 97a43da62bab9fd181a6428d43dd23efe129255675f5df390b4b9fa5b61053a7
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true generator = Genesis.generator # generator.build_render_method(:html_left) do |_value, user_proc| # instance_exec(&user_proc) if user_proc.is_a?(Proc) # end # # generator.build_optional_methods(:pre_get_left) do # user_proc = @user_proc # instance_exec(&user_proc) if user_proc.is_a?(Proc) # end generator.build_render_method(:html_left) do |value, _user_proc| @html_object.style[:left] = "#{value}px" unless @html_type == :style end generator.build_render_method(:html_right) do |value, _user_proc| @html_object.style[:right] = "#{value}px" unless @html_type == :style end generator.build_render_method(:html_top) do |value, _user_proc| @html_object.style[:top] = "#{value}px" unless @html_type == :style end generator.build_render_method(:html_bottom) do |value, _user_proc| @html_object.style[:bottom] = "#{value}px" unless @html_type == :style end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.1.1 | lib/atome/renderers/html/spatial.rb |