Sha256: 8bfd704d7508c32999e00585aa13c91e8e36b5c9754c0240de233159c4655560

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 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)
  # @browser_object.style[:right] = "#{value}px"
end

generator.build_render_method(:browser_top) do |value, _user_proc|
  BrowserHelper.send("browser_top_#{@atome[:type]}", value, @browser_object, @atome)
  # @browser_object.style[:top] = "#{value}px"
end

generator.build_render_method(:browser_bottom) do |value, _user_proc|
  BrowserHelper.send("browser_bottom_#{@atome[:type]}", value, @browser_object, @atome)
  # @browser_object.style[:bottom] = "#{value}px"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
atome-0.5.1.1 lib/atome/renderers/browser/spatial.rb