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.7.3.3 lib/renderers/renderer.rb
atome-0.5.7.3.2 lib/renderers/renderer.rb
atome-0.5.7.3.1 lib/renderers/renderer.rb
atome-0.5.7.3.0 lib/renderers/renderer.rb
atome-0.5.7.1.8 lib/renderers/renderer.rb
atome-0.5.7.1.7 lib/renderers/renderer.rb
atome-0.5.7.1.0 lib/renderers/renderer.rb
atome-0.5.7.0.7 lib/renderers/renderer.rb
atome-0.5.7.0.5 lib/renderers/renderer.rb
atome-0.5.7.0.4 lib/renderers/renderer.rb
atome-0.5.7.0.3 lib/renderers/renderer.rb
atome-0.5.7.0.2 lib/renderers/renderer.rb
atome-0.5.6.8.7 lib/renderers/renderer.rb
atome-0.5.6.8.6 lib/renderers/renderer.rb
atome-0.5.6.8.5 lib/renderers/renderer.rb
atome-0.5.6.8.3 lib/renderers/renderer.rb
atome-0.5.6.7.8 lib/renderers/renderer.rb
atome-0.5.6.7.7 lib/renderers/renderer.rb
atome-0.5.6.7.6 lib/renderers/renderer.rb
atome-0.5.6.7.5 lib/renderers/renderer.rb