Sha256: b889124dfcecffb7d844deafacf48a01c6c9b33bd7ed2f6f8e71f33900c4b80f

Contents?: true

Size: 932 Bytes

Versions: 7

Compression:

Stored size: 932 Bytes

Contents

# frozen_string_literal: true

# for browser rendering
module BrowserHelper

  def self.browser_left_text(value, browser_object, _atome)
    browser_object.style[:left] = BrowserHelper.value_parse(value)
  end

  def self.browser_right_text(value, browser_object, _atome)
    browser_object.style[:right] = BrowserHelper.value_parse(value)
  end

  def self.browser_top_text(value, browser_object, _atome)
    browser_object.style[:top] = BrowserHelper.value_parse(value)
  end

  def self.browser_bottom_text(value, browser_object, _atome)
    browser_object.style[:bottom] = BrowserHelper.value_parse(value)
  end

  def self.browser_data_text(value,atome_send)
    value = value.gsub(/\n/, '<br/>')
    atome_send.browser_object.inner_html = value
  end

  def self.browser_data_shape(_value,_atome_send)

  end
  def self.browser_data_color(_value,_atome_send)

  end

  def self.browser_data_find(value,_atome_send)

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.1.7 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.1.3 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.1.2 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.1.1 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.1.0 lib/atome/renderers/browser/helpers/text_helper.rb
atome-0.5.4.0.9 lib/atome/renderers/browser/helpers/text_helper.rb