Open Oimah opened 8 years ago
Let's have an implementation of exclude?
Let's create an object of the String-derived class before calling methods on it as instructed.
Let's also make the program interactive, as a user does not know when to enter text to instantiate our new class or when to enter a method name.
Derive a class from String which defines a few methods on Strings, eg exclude? (opp of include).From the command line, create an object of the new class and prompt for a method name to call on the object. Once the user enters the method name, execute it and display the results on the command line.
https://github.com/Oimah/Advance_Ruby/tree/develop/dynamic_method_calling