Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/week_of_month.rb
Instance Method Summary collapse
Instance Method Details
#key(value) ⇒ Object
66 67 68 69 70 |
# File 'lib/week_of_month.rb', line 66 def key(value) result = nil self.each do |k,v| result = k if v == value && result == nil; end if self.values.include?(value) result end |