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