Class: Lunar::KeywordSets
- Inherits:
-
Array
- Object
- Array
- Lunar::KeywordSets
- Defined in:
- lib/lunar/sets.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#words ⇒ Object
readonly
Returns the value of attribute words.
Instance Method Summary collapse
-
#initialize(prefix, keywords, field = '*') ⇒ KeywordSets
constructor
A new instance of KeywordSets.
Constructor Details
#initialize(prefix, keywords, field = '*') ⇒ KeywordSets
Returns a new instance of KeywordSets.
65 66 67 68 69 70 71 |
# File 'lib/lunar/sets.rb', line 65 def initialize(prefix, keywords, field = '*') @prefix = prefix @field = field @words = Words.new(keywords) super(redis_set_keys) end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
63 64 65 |
# File 'lib/lunar/sets.rb', line 63 def field @field end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
63 64 65 |
# File 'lib/lunar/sets.rb', line 63 def prefix @prefix end |
#words ⇒ Object (readonly)
Returns the value of attribute words.
63 64 65 |
# File 'lib/lunar/sets.rb', line 63 def words @words end |