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


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

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

Instance Attribute Details

#algorithmKeywordAlgorithm (readonly)

Returns the value of attribute algorithm.

Returns:



1987
1988
1989
# File 'sig/types.rbs', line 1987

def algorithm
  @algorithm
end

#positionsArray[Integer] (readonly)

Returns the value of attribute positions.

Returns:

  • (Array[Integer])


1988
1989
1990
# File 'sig/types.rbs', line 1988

def positions
  @positions
end

#scoreFloat (readonly)

Returns the value of attribute score.

Returns:

  • (Float)


1986
1987
1988
# File 'sig/types.rbs', line 1986

def score
  @score
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1985
1986
1987
# File 'sig/types.rbs', line 1985

def text
  @text
end