Sha256: 644a5c679552941b3cf70058dd93b949241569cd08e5eecf201bec70420bc4e4

Contents?: true

Size: 656 Bytes

Versions: 19

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

# for browser rendering
module BrowserHelper
  # image
  def self.browser_left_image(value, browser_object, _atome)
    browser_object.style[:left] = "#{value}px"
  end

  def self.browser_right_image(value, browser_object, _atome)
    browser_object.style[:right] = "#{value}px"
  end

  def self.browser_top_image(value, browser_object, _atome)
    browser_object.style[:top] = "#{value}px"
  end

  def self.browser_bottom_image(value, browser_object, _atome)
    browser_object.style[:bottom] = "#{value}px"
  end

  def self.browser_path_image(value, browser_object, _atome)
    browser_object[:src] = value
  end


end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.1.7 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.1.3 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.1.2 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.1.1 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.1.0 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.4.0.9 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.8.8 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.8.1 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.8.0 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.7.8 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.7.3 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.7.2 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.4 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.3.2 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.2.8 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.2.7 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.2.5 lib/atome/renderers/browser/helpers/image_helper.rb
atome-0.5.1.9 lib/atome/renderers/browser/helpers/image_helper.rb