Class: MigemoDictItem

Inherits:
Object
  • Object
show all
Defined in:
lib/migemo-dict.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



22
23
24
# File 'lib/migemo-dict.rb', line 22

def key
  @key
end

#valuesObject (readonly)

Returns the value of attribute values.



23
24
25
# File 'lib/migemo-dict.rb', line 23

def values
  @values
end