Sha256: d6c68600ec1fd509049a0821ea5892e2527d04ba7121541409b07bf5b83fdd70

Contents?: true

Size: 488 Bytes

Versions: 70

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

# Rendering method here
class Atome
  # private

  def render(element, params, &user_proc)

    render_engines = @renderers
    render_engines.each do |render_engine|
      # in case we found an exception the method call will have the form, example for color top  : html_color_top
      exception_found = "#{Universe.get_atomes_specificities[type][element]}"
      send("#{render_engine}_#{exception_found}#{element}", params, &user_proc)
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
atome-0.5.5.7.5 lib/renderers/renderer.rb
atome-0.5.5.7.3 lib/renderers/renderer.rb
atome-0.5.5.7.1 lib/renderers/renderer.rb
atome-0.5.5.7.0 lib/renderers/renderer.rb
atome-0.5.5.6.9 lib/renderers/renderer.rb
atome-0.5.5.6.8 lib/renderers/renderer.rb
atome-0.5.5.6.7.9 lib/renderers/renderer.rb
atome-0.5.5.6.6 lib/renderers/renderer.rb
atome-0.5.5.6.5 lib/renderers/renderer.rb
atome-0.5.5.6.4 lib/renderers/renderer.rb