twitter/twitter-cldr-rb — pull request #29 by KL-7 (2012-05-05 18:10:47+00:00)
Title: Changes discussed in #27

Here is the implementation of some changes discussed in #27 plus several other improvements:
1. Replaced `method_missing` with dynamic methods definition in `LocalizedDateTime`.
2. Changed `LocalizedNumber` constructor to support `:type` option. To be safe if unsupported type is passed an `ArgumentError` is raised. Initialization of the corresponding formatter is delegated up the hierarchy to the `LocalizedObject` class.
3. Conversion methods like `to_decimal` return a new object now. I tried to make sure that all parameters of the current object (base object, locale, and any options) are preserved while creating a new object of a different type.
4. Minor change (`options.dup`) in `LocalizedObject#initialize` to leave a hash, passed as `options` argument, intact.