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.
1826 |
# File 'sig/types.rbs', line 1826
def initialize: (text: String, score: Float, algorithm: KeywordAlgorithm, ?positions: Array[Integer]) -> void
|
Instance Attribute Details
#algorithm ⇒ KeywordAlgorithm (readonly)
Returns the value of attribute algorithm.
1823 1824 1825 |
# File 'sig/types.rbs', line 1823 def algorithm @algorithm end |
#positions ⇒ Array[Integer] (readonly)
Returns the value of attribute positions.
1824 1825 1826 |
# File 'sig/types.rbs', line 1824 def positions @positions end |
#score ⇒ Float (readonly)
Returns the value of attribute score.
1822 1823 1824 |
# File 'sig/types.rbs', line 1822 def score @score end |
#text ⇒ String (readonly)
Returns the value of attribute text.
1821 1822 1823 |
# File 'sig/types.rbs', line 1821 def text @text end |