Module: Robro::UserScripts
- Defined in:
- lib/robro/user_scripts.rb
Defined Under Namespace
Classes: Base
Class Method Summary collapse
Class Method Details
.all ⇒ Object
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.(file) class_name = File.basename(file, '.rb').camelize const_get class_name end end |