Method: CodeRay::PluginHost#list

Defined in:
lib/coderay/helpers/plugin_host.rb

#listObject

Returns an array of all .rb files in the plugin path.

The extension .rb is not included.



140
141
142
143
144
145
146
# File 'lib/coderay/helpers/plugin_host.rb', line 140

def list
  Dir[path_to('*')].select do |file|
    File.basename(file)[/^(?!_)\w+\.rb$/]
  end.map do |file|
    File.basename(file, '.rb').to_sym
  end
end