Sha256: b734a0c2938911872f43896dd1ac584ec7cbed801609aee5a83f627f4ed820ad
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true # Essentials 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 def get(element) @atome[element] end def value @atome end def to_s if @value @result = @value.to_s elsif @atome @result = @atome.to_s end @result.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.1.1 | lib/atome/kernel/essentials.rb |