Sha256: df0b97fbf982b190bbf28165d2571003659502b425ffbcf1b5c9cc68b416f5fa

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

# Rendering method here
class Atome
  private

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
atome-0.5.2.8 lib/atome/renderers/renderer.rb
atome-0.5.2.7 lib/atome/renderers/renderer.rb
atome-0.5.2.5 lib/atome/renderers/renderer.rb
atome-0.5.1.9 lib/atome/renderers/renderer.rb
atome-0.5.1.4 lib/atome/renderers/renderer.rb