Module: Mumukit::Inspection::I18n
- Defined in:
- lib/mumukit/inspection/i18n.rb
Class Method Summary collapse
- .translate(e) ⇒ Object (also: t)
Class Method Details
.translate(e) ⇒ Object Also known as: t
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/mumukit/inspection/i18n.rb', line 3 def translate(e) e = e.as_v2 key = key_for e.binding, e.inspection ::I18n.t key, binding: t_binding(e.binding), target: t_target(e.inspection), must: t_must(e.inspection) rescue '<unknown expectation>' end |