Sha256: bdb4b53609d062f3fb3468a1c488e605815fc8ca447f0cb1370bb6e1dd99b283

Contents?: true

Size: 762 Bytes

Versions: 4

Compression:

Stored size: 762 Bytes

Contents

# frozen_string_literal: true

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

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

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

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

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

  def self.browser_attach_web(parents, html_object, _atome)
    html_object.append_to(browser_document[parents])
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
atome-0.5.2.8 lib/atome/renderers/browser/helpers/web_helper.rb
atome-0.5.2.7 lib/atome/renderers/browser/helpers/web_helper.rb
atome-0.5.2.5 lib/atome/renderers/browser/helpers/web_helper.rb
atome-0.5.1.9 lib/atome/renderers/browser/helpers/web_helper.rb