by ollysb · 12y ago · 0 comments
class UserController
def create
...
UserMailer.send_invitation(user) # expanded line
def send_invitation(user) # implementation from UserMailer
...
end
end
end
This way you could unfold the entire call stack in place i.e. you can see all the code you're working on at once.That is an amazing demo feature -- but maybe not as useful day to day versus just hoping around functions.
Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.