Skip to main content
3 of 5
deleted 284 characters in body
daniero
  • 18.7k
  • 5
  • 51
  • 78

Ruby 27

A very slightly modified version of this (via):

puts <<2*3,2
puts <<2*3,2
2

The number of times that puts-line is printed grows exponentially.

$ ruby quine.rb | ruby | ruby
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
puts <<2*3,2
2

$ ruby quine.rb | ruby | ruby | ruby | ruby | ruby | ruby | ruby | wc -l
    3283
    
daniero
  • 18.7k
  • 5
  • 51
  • 78