dannypurcell / rubycom

Turn your library into a command-line app by simply including Rubycom.
http://dannypurcell.github.io/rubycom/
MIT License
5 stars 0 forks source link

Restrict calling of methods in Modules not explicitly included in the console #25

Open dannypurcell opened 8 years ago

dannypurcell commented 8 years ago

It is currently possible to call any static method in any module reachable from the one Rubycom was included in. This includes private static methods since they are only hidden but not restricted from usage.

We should like Rubycom to return 'no such command' if a user attempts to call a method which is not shown in the command list.