Class: R18n::Typed

Inherits:
Struct
  • Object
show all
Defined in:
lib/r18n-core/translation.rb

Overview

Struct to containt translation with some type for filter.

Instance Attribute Summary collapse

Instance Attribute Details

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



24
25
26
# File 'lib/r18n-core/translation.rb', line 24

def locale
  @locale
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



24
25
26
# File 'lib/r18n-core/translation.rb', line 24

def path
  @path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



24
25
26
# File 'lib/r18n-core/translation.rb', line 24

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



24
25
26
# File 'lib/r18n-core/translation.rb', line 24

def value
  @value
end