[TxMt] Ruby Evaluate Bundle
Kevin Marsh
kevin at kevinmarsh.com
Sat Apr 29 17:22:15 UTC 2006
Daniel,
This is seriously the coolest thing I've seen in awhile... good work!
Kevin
On Apr 28, 2006, at 2:00 PM, Daniel Harple wrote:
> Here is a useful bundle for testing out ruby snippets. It includes
> a script from eigenclass.org[1].
>
> ⌘= insert/remove an eval marker for the current line
> ⌘E evaluates and annotate the file according to the markers
>
> If there are errors they are placed at the end of the file.
>
> Examples (after eval):
>
> (1..10).each do |i|
> i ** i # => 1, 4, 27, 256, 3125, 46656, 823543, 16777216,
> 387420489, 10000000000
> end
> (1..10).to_a # => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>
> Unfortunately you can't do something like this:
>
> (1..10).each do |i|
> i ** i
> end # =>
>
> [1]: http://eigenclass.org/hiki.rb?xmp+redux%3A+expanding+test
> +assertions+for+profit
>
> -- Daniel
>
> <Ruby Evaluate.tmbundle.zip>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
Kevin Marsh
kevin at kevinmarsh.com email | 419.410.8054 cell | willcodeforfoo aim
More information about the textmate
mailing list