Learn Ruby - Lesson 0: Setup and Installation

  • Thread starter Space Ship Traveller
  • Start date
S

Space Ship Traveller

Hello,

I'm writing a tutorial for beginners, primarily aimed at Teachers and =
Students.

I've written the following tutorial.

http://www.oriontransfer.co.nz/education/learn-ruby/lesson-0/index

Any feedback would be really really helpful. Thanks to anyone who takes =
a look.

Any suggestions or feedback would be fantastic - what should I add or =
remove, what was not clear / etc.

Kind regards,
Samuel
 
J

Juan Gf

Space said:
Hello,

I'm writing a tutorial for beginners, primarily aimed at Teachers and
Students.

I've written the following tutorial.

http://www.oriontransfer.co.nz/education/learn-ruby/lesson-0/index

Any feedback would be really really helpful. Thanks to anyone who takes
a look.

Any suggestions or feedback would be fantastic - what should I add or
remove, what was not clear / etc.

Kind regards,
Samuel

Hello,

I think there is a small error in the last example. It's written:
# Do you wear a watch? Ruby can help you out!
puts "The time is: \#{Time.now.to_s}"

I think it should say:

puts "The time is: #{Time.now.to_s}"
 
S

Space Ship Traveller

Oh yes, Thanks - I've fixed it :)

Hello,

I think there is a small error in the last example. It's written:
# Do you wear a watch? Ruby can help you out!
puts "The time is: \#{Time.now.to_s}"

I think it should say:

puts "The time is: #{Time.now.to_s}"
 
J

Jesús Gabriel y Galán

I haven't read the tutorial, but this can be written as:

puts "The time is: #{Time.now}"

since string interpolation calls to_s for you.

Jesus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top