Guest User

Untitled

a guest
Aug 9th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1.     Dir.glob(File.expand_path(File.join File.dirname(__FILE__), "*.rb")).map{|f|
  2.       File.basename(f.split(".rb",2)[0])
  3.           .capitalize
  4.           .gsub(/_[A-Za-z]/){|c| c.split('')[1].upcase }
  5.     }
Add Comment
Please, Sign In to add comment