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.
22 23 24 25 |
# File 'lib/ttfunk/placeholder.rb', line 22 def initialize(name, length: 1) @name = name @length = length 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
18 19 20 |
# File 'lib/ttfunk/placeholder.rb', line 18 def length @length 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
14 15 16 |
# File 'lib/ttfunk/placeholder.rb', line 14 def name @name 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
10 11 12 |
# File 'lib/ttfunk/placeholder.rb', line 10 def position @position end |