Sha256: 399f4db3c937af566dbc072950d2eb557b4b42cccdaabab01c832ae865a41b70
Contents?: true
Size: 288 Bytes
Versions: 2
Compression:
Stored size: 288 Bytes
Contents
module ActiveMigration class Dictionary def initialize(url) @dictionary = YAML::load(File.open(url)) end def find(term) if @dictionary.include? term.to_s @dictionary[term.to_s] else term.to_s end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | lib/active_migration/dictionary.rb |
guara-0.0.1.rc | lib/active_migration/dictionary.rb |