lib/juicer/chainable.rb in cjohansen-juicer-0.2.0 vs lib/juicer/chainable.rb in cjohansen-juicer-0.2.4
- old
+ new
@@ -61,9 +61,10 @@
#
# Sets the next command in the chain
#
def next_in_chain=(next_obj)
@_next_in_chain = next_obj
+ next_obj || self
end
alias_method :set_next, :next_in_chain=
#