rearick

rearick

Programming Ruby 3.2 (5th Edition) vB1.0: Book source string interpolation failure? (p.89)

@noelrappin On page 89 of the PDF in the last sentence of the last paragraph of the page and just before the example that begins “class Child < Parent,” there is an out of place #{sec.super} which doesn’t appear to be part of the subject being discussed and is in a place where there would normally be a reference to another part of the book.

"...that were given to the original method.", more about this in #{sec.super}.)
^ <----                              ----> ^   outside ""? ----> ^^^^^^^^^^^^

Is it possible that string interpolation didn’t happen because one of the double quotes preceding #{sec.super} in your book’s source wasn’t escaped?

Also, as I was writing all that I noticed something else:

Should this punctuation:

"...that were given to the original method.", more about this in #{sec.super}.)
                                    ----> ^ ^ <----

be changed to this?

"...that were given to the original method," more about this in #{sec.super}.)

Or, maybe this is even more appropriate?

"...that were given to the original method"; more about this in #{sec.super}.)

First Post!

noelrappin

noelrappin

Author of Modern Front-End Development for Rails

It’s not exactly a string interpolation error, it’s more that I used the wrong syntax for a cross-link. Should be fixed

Where Next?

Popular Pragmatic Bookshelf topics Top

New
belgoros
Following the steps described in Chapter 6 of the book, I’m stuck with running the migration as described on page 84: bundle exec sequel...
New
adamwoolhether
When trying to generate the protobuf .go file, I receive this error: Unknown flag: --go_opt libprotoc 3.12.3 MacOS 11.3.1 Googling ...
New
AndyDavis3416
@noelrappin Running the webpack dev server, I receive the following warning: ERROR in tsconfig.json TS18003: No inputs were found in c...
New
brunogirin
When I run the coverage example to report on missing lines, I get: pytest --cov=cards --report=term-missing ch7 ERROR: usage: pytest [op...
New
oaklandgit
Hi, I completed chapter 6 but am getting the following error when running: thread 'main' panicked at 'Failed to load texture: IoError(O...
New
adamwoolhether
Is there any place where we can discuss the solutions to some of the exercises? I can figure most of them out, but am having trouble with...
New
jwandekoken
Book: Programming Phoenix LiveView, page 142 (157/378), file lib/pento_web/live/product_live/form_component.ex, in the function below: d...
New
SlowburnAZ
Getting an error when installing the dependencies at the start of this chapter: could not compile dependency :exla, "mix compile" failed...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New

Other popular topics Top

DevotionGeo
I know that these benchmarks might not be the exact picture of real-world scenario, but still I expect a Rust web framework performing a ...
New
Rainer
My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
gagan7995
API 4 Path: /user/following/ Method: GET Description: Returns the list of all names of people whom the user follows Response [ { ...
New
AstonJ
Saw this on TikTok of all places! :lol: Anyone heard of them before? Lite:
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
New
First poster: bot
Large Language Models like ChatGPT say The Darnedest Things. The Errors They MakeWhy We Need to Document Them, and What We Have Decided ...
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
Fl4m3Ph03n1x
Background Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
New

Sub Categories: