Sha256: 67d2bc05f4c1c299196ec732f78cf821991cdf27110ee4810de0975072121359

Contents?: true

Size: 326 Bytes

Versions: 4

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

# Rendering method here
class Atome
  private

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
atome-0.5.3.7.3 lib/atome/renderers/renderer.rb
atome-0.5.3.7.2 lib/atome/renderers/renderer.rb
atome-0.5.3.4 lib/atome/renderers/renderer.rb
atome-0.5.3.2 lib/atome/renderers/renderer.rb