/ruby-metaprog

Short metaprogramming example in ruby

Primary LanguageRubyThe UnlicenseUnlicense

ruby-metaprog

Example of a simple currency converter using the Exchange Rates API, with rich metaprogramming style in ruby, using method_missing, attr_accessor, dynamic injection of methods at runtime (the logger using define_method), and the implementation of respond_to? and respond_to_missing?.

Contributors