Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/reve/extensions.rb
Instance Method Summary (collapse)
- - (Object) rsend(*args, &block) (also: #__rsend__)
Instance Method Details
- (Object) rsend(*args, &block) Also known as: __rsend__
111 112 113 114 115 116 117 118 |
# File 'lib/reve/extensions.rb', line 111 def rsend(*args, &block) obj = self args.each do |a| b = (a.is_a?(Array) && a.last.is_a?(Proc) ? a.pop : block) obj = obj.__send__(*a, &b) end obj end |