instance method
load_rb
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
load_rb(filename)
Loads a plain Ruby translations file. eval’ing the file must yield a Hash containing translation data with locales as toplevel keys.
Parameters
-
filenamereq
Source
# File activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb, line 184
def load_rb(filename)
eval(IO.read(filename), binding, filename)
end
Defined in activesupport/lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb line 184
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Simple