Class: TTFunk::Placeholder Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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.

Parameters:

  • name (Symbol)
  • length (Integer) (defaults to: 1)
Source Code
lib/ttfunk/placeholder.rb, line 22
22
def initialize(name, length: 1)
23
  @name = name
24
  @length = length
25
end

Instance Attribute Details

#lengthInteger (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

Returns:

  • (Integer)
Source Code
lib/ttfunk/placeholder.rb, line 18
18
def length
19
  @length
20
end

#nameSymbol (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

Returns:

  • (Symbol)
Source Code
lib/ttfunk/placeholder.rb, line 14
14
def name
15
  @name
16
end

#positionInteger

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

Returns:

  • (Integer)
Source Code
lib/ttfunk/placeholder.rb, line 10
10
def position
11
  @position
12
end