just some ruby

Ruby code posted by chomaras
created at 31 Jan 22:17, updated at 05 Oct 01:23

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 (2..@num).each do |t| # an array of the number range 2-number given
            range<<t
end

(2..@num).each do |t| # an array of the number range 2-number given
            range<<t
end

class Poem
  def initialize
    @text = <<END
"Faith" is a fine invention
When Gentlemen can see
But Microscopes are prudent
           In an Emergency.
(Emily Dickinson 1830-1886)
END
  end
  def recite
    puts @text
  end
end
438 Bytes in 2 ms with coderay