Class: LocaleBase::TrackingToken
- Inherits:
-
Object
- Object
- LocaleBase::TrackingToken
- Defined in:
- lib/locale_base/tracking_token.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(tracker, position) ⇒ TrackingToken
constructor
A new instance of TrackingToken.
- #to_s ⇒ Object
Constructor Details
#initialize(tracker, position) ⇒ TrackingToken
Returns a new instance of TrackingToken.
7 8 9 10 |
# File 'lib/locale_base/tracking_token.rb', line 7 def initialize(tracker, position) @tracker = tracker @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
5 6 7 |
# File 'lib/locale_base/tracking_token.rb', line 5 def position @position end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/locale_base/tracking_token.rb', line 12 def to_s @tracker.retrieve(self) end |