Class: Ronsplains::Saying
- Inherits:
-
Object
- Object
- Ronsplains::Saying
- Defined in:
- lib/ronsplains.rb
Instance Method Summary collapse
Instance Method Details
#ron_says_idiom ⇒ Object
11 12 13 |
# File 'lib/ronsplains.rb', line 11 def ron_says_idiom "That's like putting lipstick on a pig." end |
#ron_says_time ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ronsplains.rb', line 4 def ron_says_time time = Time.now minute = time.min hour = time.hour % 12 meridian_indicator = time.hour < 12 ? 'AM' : 'PM' "It’s #{minute} minutes past #{hour} o'clock, #{meridian_indicator}, and it’s time to party!" end |