module Rains::DSL::Translation
Public Instance Methods
translate()
click to toggle source
# File lib/rains/dsl/translation.rb, line 4 def translate I18n.translate(translation_key) end
translation_class()
click to toggle source
# File lib/rains/dsl/translation.rb, line 12 def translation_class Inflecto.underscore(self.class).gsub(/\//, '.') end
translation_key()
click to toggle source
# File lib/rains/dsl/translation.rb, line 8 def translation_key "#{translation_root}.#{translation_class}" end
translation_root()
click to toggle source
# File lib/rains/dsl/translation.rb, line 16 def translation_root :rains end