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



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

def locale
  @locale
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



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

def path
  @path
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end