>>>>> "A" == A Bull in the China Shop of Life <feoh / fourfuzzies.org> writes:

>> n=$*[0].to_f/2
>> (0-n..n).each{|x|puts" "*x.abs+"#"*(2*(n-x.abs))}

[...]

A> Is there any way to step through this one substatement at a time? When run 
A> through the Ruby debugger the debugger wants to treat this as like 2 
A> logical lines which doesn't help :)

 You can always ask ruby to know what it do

pigeon% cat b.rb
require 'iis'
puts dump
n=$*[0].to_f/2
(0-n..n).each{|x|puts" "*x.abs+"#"*(2*(n-x.abs))}
pigeon% 

pigeon% ruby b.rb 8
require("iis")
puts(dump)
n = $*[0].to_f / 2
(0 - n .. n).each do |x|
   puts((" " * x.abs) + ("#" * (2 * (n - x.abs))))
end
    
   ##
  ####
 ######
########
 ######
  ####
   ##
    
pigeon% 


Guy Decoux