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])


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

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

Instance Attribute Details

#algorithmKeywordAlgorithm (readonly)

Returns the value of attribute algorithm.

Returns:



1823
1824
1825
# File 'sig/types.rbs', line 1823

def algorithm
  @algorithm
end

#positionsArray[Integer] (readonly)

Returns the value of attribute positions.

Returns:

  • (Array[Integer])


1824
1825
1826
# File 'sig/types.rbs', line 1824

def positions
  @positions
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1822
1823
1824
# File 'sig/types.rbs', line 1822

def score
  @score
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1821
1822
1823
# File 'sig/types.rbs', line 1821

def text
  @text
end