lib/plugin_manager.rb
def each group: nil
    arr = if group.nil?
      @plugins
    elsif @groups.has_key? group.to_sym
      @groups[group.to_sym]
    else
      raise GroupNotFoundException.new group
    end

    arr.each do |plugin_name, plugin|
      next if plugin.plugin_settings(:disabled)

      yield plugin, @plugin_instances[plugin_name]
    end
  end
# iterate over all plugins or plugin group
#
# @param group [String] plugin group
# @yield [klass, instance] apply block to each plugin
# @raise [PluginManager::GroupNotFoundException]
iterate over all plugins or plugin group
iterate over all plugins or plugin group
def each group: nil
    arr = if group.nil?
      @plugins
    elsif @groups.has_key? group.to_sym
      @groups[group.to_sym]
    else
      raise GroupNotFoundException.new group
    end
    arr.each do |plugin_name, plugin|
      next if plugin.plugin_settings(:disabled)
      yield plugin, @plugin_instances[plugin_name]
    end
  end
def each group : nil arr = if group . nil? @plugins elsif @groups . has_key? group . to_sym @groups [ group . to_sym ] else raise GroupNotFoundException . new group end arr . each do | plugin_name , plugin | next if plugin . plugin_settings ( :disabled ) yield plugin , @plugin_instances [ plugin_name ] end end
iterate over all plugins or plugin group
iterate over all plugins or plugin group
None
group
None
]
apply block to each plugin
apply block to each plugin