Sha256: 2649e5f030b8464d1ada995916b8fea5f6d9d4473360f6da4446b719a5494b1a

Contents?: true

Size: 424 Bytes

Versions: 8

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

# Rendering method here
class Atome
  private

  def rendering(element,params, &user_proc)
    # params=instance_variable_get("@#{element}")
    render_engines = @atome[:renderers]
    render_engines.each do |render_engine|
      # puts  "rendering : send('#{render_engine}_#{element}', #{params},   &user_proc)"
      send("#{render_engine}_#{element}", params, &user_proc)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 lib/atome/renderers/renderer.rb
atome-0.5.4.1.7 lib/atome/renderers/renderer.rb
atome-0.5.4.1.3 lib/atome/renderers/renderer.rb
atome-0.5.4.1.2 lib/atome/renderers/renderer.rb
atome-0.5.4.1.1 lib/atome/renderers/renderer.rb
atome-0.5.4.1.0 lib/atome/renderers/renderer.rb
atome-0.5.4.0.9 lib/atome/renderers/renderer.rb
atome-0.5.3.8.8 lib/atome/renderers/renderer.rb