[SVN] r3792 (Ruby)
James Edward Gray II
james at grayproductions.net
Mon Jun 26 18:13:54 UTC 2006
On Jun 26, 2006, at 1:07 PM, Allan Odgaard wrote:
> 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 :)
Ah, very good point.
James Edward Gray II
More information about the textmate-dev
mailing list