Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/extensions.rb
Overview
Useful functionality that didn’t belong anywhere else
Instance Method Summary collapse
-
#returning(value) {|value| ... } ⇒ Object
Borowed from Rails..
Instance Method Details
#returning(value) {|value| ... } ⇒ Object
Borowed from Rails.. api.rubyonrails.org/classes/Object.html#M000289
4 5 6 7 |
# File 'lib/extensions.rb', line 4 def returning(value) yield(value) value end |