Module: Robro::UserScripts

Defined in:
lib/robro/user_scripts.rb

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Class Method Details

.allObject



3
4
5
6
7
8
9
# File 'lib/robro/user_scripts.rb', line 3

def self.all
  Dir.glob('userscripts/*.rb').map do |file|
    require File.expand_path(file)
    class_name = File.basename(file, '.rb').camelize
    const_get class_name
  end
end