musician.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon site for Musicians and people into Music

Administered by:

Server stats:

153
active users

#sinatra

0 posts0 participants0 posts today

Ugh, why are methods that are defined in helper modules not appearing as instance methods in the Sinatra::Base subclass? Appears to have changed in 3.2.0.

module FooHelpers
def foo
end
end

class App < Sinatra::Base
include FooHelpers
end

app = App.new
app.foo
# undefined method `foo' for #<App ...>

Replied in thread

@OldAndCranky Yeah, Basie jamming with Sinatra was stone cold. I remember being at a stop light in L.A. just a few years ago, and some kid pulls up in a Jeep with his stereo blasting the SINATRA AT THE SANDS album. Fans of all ages. But their best work together was the IT MIGHT AS WELL BE SPRING album. I heard that for the first time in the 1980s and realized what a deadly combination they made.