lib/blogo/renderer/base.rb
# Try to load dependencies, otherwise raise meaningful error.
#
# @param renderer_name [Symbol, String]
#
# @return [void]
Try to load dependencies, otherwise raise meaningful error.
Try to load dependencies otherwise raise meaningful error .
def load_dependencies!(renderer_name)
        return unless dependencies
        dependencies.each do |dependency|
          begin
            require dependency[:require]
          rescue LoadError
            msg = "Please add `gem \"#{dependency[:gem]}\"` to the Gemfile " \
                  "to use Blogo with #{renderer_name.inspect} renderer"
            raise LoadError, msg
          end
        end
      end
def load_dependencies! ( renderer_name ) return unless dependencies dependencies . each do | dependency | begin require dependency [ :require ] rescue LoadError msg = "Please add `gem \"#{dependency[:gem]}\"` to the Gemfile " "to use Blogo with #{renderer_name.inspect} renderer" raise LoadError , msg end end end
Try to load dependencies, otherwise raise meaningful error.
Try to load dependencies otherwise raise meaningful error .
None
void
renderer_name
<not_specific>
<not_specific>
None