Class: Xberg::Keyword
- Inherits:
-
Object
- Object
- Xberg::Keyword
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#algorithm ⇒ KeywordAlgorithm
readonly
Returns the value of attribute algorithm.
-
#positions ⇒ Array[Integer]
readonly
Returns the value of attribute positions.
-
#score ⇒ Float
readonly
Returns the value of attribute score.
-
#text ⇒ String
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ Keyword
constructor
A new instance of Keyword.
Constructor Details
#initialize ⇒ Keyword
Returns a new instance of Keyword.
1815 |
# File 'sig/types.rbs', line 1815
def initialize: (text: String, score: Float, algorithm: KeywordAlgorithm, ?positions: Array[Integer]) -> void
|
Instance Attribute Details
#algorithm ⇒ KeywordAlgorithm (readonly)
Returns the value of attribute algorithm.
1812 1813 1814 |
# File 'sig/types.rbs', line 1812 def algorithm @algorithm end |
#positions ⇒ Array[Integer] (readonly)
Returns the value of attribute positions.
1813 1814 1815 |
# File 'sig/types.rbs', line 1813 def positions @positions end |
#score ⇒ Float (readonly)
Returns the value of attribute score.
1811 1812 1813 |
# File 'sig/types.rbs', line 1811 def score @score end |
#text ⇒ String (readonly)
Returns the value of attribute text.
1810 1811 1812 |
# File 'sig/types.rbs', line 1810 def text @text end |