Given the file name, I would like to know if there is a ruby way to get a constant name for it.
eg:
"lib/myproject/connect.rb" => MyProject::Connect
ps: I know I can create a script for this.
EDIT: consider only the first one at the top.
source
share