[SVN] r3792 (Ruby)
Allan Odgaard
throw-away-1 at macromates.com
Mon Jun 26 18:07:01 UTC 2006
On 26/6/2006, at 19:22, James Edward Gray II wrote:
>> • works when there is a selection as well (require is then
>> inserted at the start of the selection, and only applies to the
>> code in the selection, no attempt is made to avoid redundant
>> requires)
> Just to be clear, this script is aware of redundant requires, as
> long as they are part of the data sent to the script. This is
> probably a good argument or using it without a selection.
I never thought it made sense to use w/o a selection, but turns out
to be a neat feature.
For example blogging.rb contains a lot of utility methods used by
various commands, so putting the require in the actual method does to
some degree make sense, at least for rare requires (like iconv) --
now there is an automated way to do that :)
More information about the textmate-dev
mailing list