Class: Globalize::Translation::Static
- Inherits:
-
Globalize::Translation
- Object
- String
- Globalize::Translation
- Globalize::Translation::Static
- Defined in:
- lib/globalize/translation.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#options ⇒ Object
Returns the value of attribute options.
-
#original ⇒ Object
Returns the value of attribute original.
-
#plural_key ⇒ Object
Returns the value of attribute plural_key.
-
#requested_locale ⇒ Object
Returns the value of attribute requested_locale.
Instance Method Summary collapse
-
#initialize(string, meta = nil) ⇒ Static
constructor
A new instance of Static.
Methods inherited from Globalize::Translation
Constructor Details
#initialize(string, meta = nil) ⇒ Static
Returns a new instance of Static.
13 14 15 16 |
# File 'lib/globalize/translation.rb', line 13 def initialize(string, = nil) self.original = string super end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def key @key end |
#locale ⇒ Object
Returns the value of attribute locale.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def locale @locale end |
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def @options end |
#original ⇒ Object
Returns the value of attribute original.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def original @original end |
#plural_key ⇒ Object
Returns the value of attribute plural_key.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def plural_key @plural_key end |
#requested_locale ⇒ Object
Returns the value of attribute requested_locale.
11 12 13 |
# File 'lib/globalize/translation.rb', line 11 def requested_locale @requested_locale end |