Class: Xberg::Keyword

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeKeyword

Returns a new instance of Keyword.

Parameters:

  • text: (String)
  • score: (Float)
  • algorithm: (enum_KeywordAlgorithm)
  • positions: (Array[Integer])


1370
# File 'sig/types.rbs', line 1370

def initialize: (text: String, score: Float, algorithm: enum_KeywordAlgorithm, ?positions: Array[Integer]) -> void

Instance Attribute Details

#algorithmenum_KeywordAlgorithm (readonly)

Returns the value of attribute algorithm.

Returns:

  • (enum_KeywordAlgorithm)


1367
1368
1369
# File 'sig/types.rbs', line 1367

def algorithm
  @algorithm
end

#positionsArray[Integer]? (readonly)

Returns the value of attribute positions.

Returns:

  • (Array[Integer], nil)


1368
1369
1370
# File 'sig/types.rbs', line 1368

def positions
  @positions
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1366
1367
1368
# File 'sig/types.rbs', line 1366

def score
  @score
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1365
1366
1367
# File 'sig/types.rbs', line 1365

def text
  @text
end