Class: Mysql2legacydb::DefaultTranslator
- Inherits:
-
Object
- Object
- Mysql2legacydb::DefaultTranslator
- Defined in:
- lib/mysql2legacydb/default_translator.rb
Instance Method Summary collapse
Instance Method Details
#legacy_to_new(legacy_name) ⇒ Object
3 4 5 |
# File 'lib/mysql2legacydb/default_translator.rb', line 3 def legacy_to_new(legacy_name) legacy_name.underscore end |
#new_to_legacy(new_name) ⇒ Object
7 8 9 |
# File 'lib/mysql2legacydb/default_translator.rb', line 7 def new_to_legacy(new_name) new_name.to_s.camelize(:lower) end |