class ExternalMigration::Dictionary
Public Class Methods
new(url)
click to toggle source
# File lib/external_migration/dictionary.rb, line 5 def initialize(url) @dictionary = YAML::load(File.open(url)) end
Public Instance Methods
find(term)
click to toggle source
# File lib/external_migration/dictionary.rb, line 9 def find(term) if @dictionary.include? term.to_s @dictionary[term.to_s] else term.to_s end end