class Multilang::MultilangTranslationProxy

Attributes

multilang_keeper[R]

Public Class Methods

new(multi_keeper, locale) click to toggle source
Calls superclass method
# File lib/multilang-hstore/translation_proxy.rb, line 5
def initialize(multi_keeper, locale)
  @multilang_keeper = multi_keeper
  super(@multilang_keeper.to_str(locale))
end

Public Instance Methods

any() click to toggle source
# File lib/multilang-hstore/translation_proxy.rb, line 18
def any
  @multilang_keeper.current_or_any_value
end
to_s() click to toggle source
# File lib/multilang-hstore/translation_proxy.rb, line 14
def to_s
  String.new(self)
end
translation() click to toggle source
# File lib/multilang-hstore/translation_proxy.rb, line 10
def translation
  @multilang_keeper
end