Class: MigemoDictItem
- Inherits:
-
Object
- Object
- MigemoDictItem
- Defined in:
- lib/migemo-dict.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(key, values) ⇒ MigemoDictItem
constructor
A new instance of MigemoDictItem.
Constructor Details
#initialize(key, values) ⇒ MigemoDictItem
Returns a new instance of MigemoDictItem.
15 16 17 18 19 20 |
# File 'lib/migemo-dict.rb', line 15 def initialize(key, values) @key = key @values = values raise if @key == nil raise if @values == nil end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
22 23 24 |
# File 'lib/migemo-dict.rb', line 22 def key @key end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
23 24 25 |
# File 'lib/migemo-dict.rb', line 23 def values @values end |