Ask A Question

Notifications

You’re not receiving notifications from this thread.

Strings in Ruby Discussion

Discussion for Strings in Ruby

Thanks for this lesson

Reply

Thanks for watching, Carlos!

Reply

Awesome! Thanks Collin! Looking forward to reviewing 'String' instance methods!
(https://ruby-doc.org/3.2.2/String.html)

I appreciate your focus on good terminology! : )

Summary of Topics:

  • Single and double quotes
  • Escaping characters
  • Interpolation
  • String class vs String literals
  • Concatenation
  • String instance methods with arguments
  • String predicate methods => returns a boolean response
  • Method chaining
  • String indexing (zero-based indexing)
Reply

It's so cool that Adam Driver is teaching Ruby now

Reply

It's a lot of work going back and forth but oh the things we do for love ;)

Reply

Can you share the link to the video? Thanks in advance.

Reply

Which link are you looking for?

Reply

Well the video is on YouTube, there is a button "watch on youtube"

Reply

puts "great work".upcase

Reply

In this lesson you tell about brackets usage for better understanding that methods take arguments.
puts "text".count "a" - looks like syntax sugar, and it seems like this can lead to misunderstanding in the future.
Does it make sense to do it like in the following example instead?
puts( "text".count( "a" ) )

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,677+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.