Class: TTFunk::Placeholder Private
- Inherits:
-
Object
- Object
- TTFunk::Placeholder
- Defined in:
- lib/ttfunk/placeholder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Encoded String placeholder.
Instance Attribute Summary collapse
-
#length ⇒ Integer
readonly
private
Length of the placeholder.
-
#name ⇒ Symbol
readonly
private
Planceholder name.
-
#position ⇒ Integer
private
Placeholder position in the cintaining Encoded String.
Instance Method Summary collapse
-
#initialize(name, length: 1) ⇒ Placeholder
constructor
private
A new instance of Placeholder.
Constructor Details
#initialize(name, length: 1) ⇒ Placeholder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Placeholder.
Source Code
22 | def initialize(name, length: 1) |
23 | @name = name |
24 | @length = length |
25 | end
|
Instance Attribute Details
#length ⇒ Integer (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Length of the placeholder
Source Code
18 | def length |
19 | @length
|
20 | end
|
#name ⇒ Symbol (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Planceholder name
Source Code
14 | def name |
15 | @name
|
16 | end
|
#position ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Placeholder position in the cintaining Encoded String
Source Code
10 | def position |
11 | @position
|
12 | end
|