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: (KeywordAlgorithm)
  • positions: (Array[Integer])


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

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

Instance Attribute Details

#algorithmKeywordAlgorithm (readonly)

Returns the value of attribute algorithm.

Returns:



1812
1813
1814
# File 'sig/types.rbs', line 1812

def algorithm
  @algorithm
end

#positionsArray[Integer] (readonly)

Returns the value of attribute positions.

Returns:

  • (Array[Integer])


1813
1814
1815
# File 'sig/types.rbs', line 1813

def positions
  @positions
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1811
1812
1813
# File 'sig/types.rbs', line 1811

def score
  @score
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1810
1811
1812
# File 'sig/types.rbs', line 1810

def text
  @text
end