Sha256: ed399eaeda6305eed98ca721856671c80fc7bdce63c5b0466d1e7e3fc03e76e4
Contents?: true
Size: 867 Bytes
Versions: 2
Compression:
Stored size: 867 Bytes
Contents
# frozen_string_literal: true generator = Genesis.generator generator.build_render_method(:browser_left) do |value, _user_proc| BrowserHelper.send("browser_left_#{@atome[:type]}", value, @browser_object, @atome) end generator.build_render_method(:browser_right) do |value, _user_proc| BrowserHelper.send("browser_right_#{@atome[:type]}", value, @browser_object, @atome) end generator.build_render_method(:browser_top) do |value, _user_proc| BrowserHelper.send("browser_top_#{@atome[:type]}", value, @browser_object, @atome) end generator.build_render_method(:browser_bottom) do |value, _user_proc| BrowserHelper.send("browser_bottom_#{@atome[:type]}", value, @browser_object, @atome) end generator.build_render_method(:browser_rotate) do |value, _user_proc| @browser_object.style[:transform] = "rotate(#{value}deg)" unless @browser_type == :style end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.1.9 | lib/atome/renderers/browser/spatial.rb |
atome-0.5.1.4 | lib/atome/renderers/browser/spatial.rb |