From: rick.tessner <rick.tessner@gmail.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] [PATCH] Remove use of Object tap method
Date: Tue, 02 Mar 2010 14:10:15 -0800 [thread overview]
Message-ID: <1267567699-sup-491@onnadayr.ca> (raw)
In-Reply-To: <1267557651-7110-2-git-send-email-bwalton@artsci.utoronto.ca>
Excerpts from Ben Walton's message of Tue Mar 02 11:20:51 -0800 2010:
> Remove ruby 1.9-ism in buffer.rb. This keeps things running on older
> ruby versions.
What about adding a lib/sup/tap.rb that looks like this:
unless Object.respond_to?(:tap)
class Object
def tap
yield self
self
end
end
end
and then adding a:
require 'tap'
to lib/sup.rb? 'tap' is a really handy little method that cleans up
code nicely. :)
--
Rick Tessner
rick.tessner@gmail.com
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next prev parent reply other threads:[~2010-03-02 22:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-02 19:20 Ben Walton
2010-03-02 22:10 ` rick.tessner [this message]
2010-03-02 22:46 ` Ben Walton
2010-03-03 18:12 ` Rich Lane
2010-03-03 18:25 ` Ben Walton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1267567699-sup-491@onnadayr.ca \
--to=rick.tessner@gmail.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox