Module: SimpleI18n::Specification
- Included in:
- SimpleI18n
- Defined in:
- lib/simple_i18n/specification.rb
Defined Under Namespace
Modules: TranslationDefinition
Instance Method Summary collapse
Instance Method Details
#load_language_file(filename, options = {}) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/simple_i18n/specification.rb', line 16 def load_language_file(filename, = {}) BasicObject.new.instance_eval do class << self include TranslationDefinition end Kernel.eval(File.read(filename), Kernel.binding) end end |