Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/sometimes.rb
Overview
half_the_time do sometimes do
Instance Method Summary collapse
- #always ⇒ Object
- #half_the_time ⇒ Object (also: #sometimes)
- #mostly ⇒ Object
- #never ⇒ Object
- #rarely ⇒ Object
Instance Method Details
#always ⇒ Object
87 88 89 |
# File 'lib/sometimes.rb', line 87 def always yield end |
#half_the_time ⇒ Object Also known as: sometimes
72 73 74 |
# File 'lib/sometimes.rb', line 72 def half_the_time(...) 50.percent_of_the_time(...) end |
#mostly ⇒ Object
81 82 83 |
# File 'lib/sometimes.rb', line 81 def mostly(...) 95.percent_of_the_time(...) end |
#never ⇒ Object
85 |
# File 'lib/sometimes.rb', line 85 def never(...); end |
#rarely ⇒ Object
77 78 79 |
# File 'lib/sometimes.rb', line 77 def rarely(...) 5.percent_of_the_time(...) end |