Module: WordAct

Included in:
Dic
Defined in:
lib/cute_kv/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#add(words) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/cute_kv/ext/string.rb', line 14

def add(words)
   if words.is_a? Array
		words.each {|w| self.add(w.to_s)}
	else
		self << words.to_s
		Dic::Mirror[self].delete(words.to_s)
		self.uniq!
	end
end

#hashObject



24
25
26
# File 'lib/cute_kv/ext/string.rb', line 24

def hash
	self.object_id
end