Module: Zodiac::Date
- Defined in:
- lib/zodiac/date.rb
Instance Method Summary collapse
Instance Method Details
#zodiac_sign ⇒ Object
3 4 5 6 7 |
# File 'lib/zodiac/date.rb', line 3 def zodiac_sign raise "#{self} should respond_to #month and #day" unless respond_to?(:month) && respond_to?(:day) Finder.sign_for(month: self.month, day: self.day) end |
#zodiac_sign_id ⇒ Object
9 10 11 12 13 |
# File 'lib/zodiac/date.rb', line 9 def zodiac_sign_id raise "#{self} should respond_to #month and #day" unless respond_to?(:month) && respond_to?(:day) Finder.sign_id_for(month: self.month, day: self.day) end |
#zodiac_sign_symbol ⇒ Object
15 16 17 18 19 |
# File 'lib/zodiac/date.rb', line 15 def zodiac_sign_symbol raise "#{self} should respond_to #month and #day" unless respond_to?(:month) && respond_to?(:day) Finder.sign_symbol_for(month: self.month, day: self.day) end |