What's does this double @ sign syntax mean after __END__

Hi, list

I’m wondering what does double @ sign after END syntax meaning like
in
this file1

single file sinatra app really impressed me :slight_smile:


Silence is golden.

twitter: @AccelReality
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org

Hello,

On 12 Νοε 2013, at 09:44 , AR (aka AleiPhoenix) [email protected]
wrote:

Hi, list

I’m wondering what does double @ sign after END syntax meaning like in this
file[1]

Generally speaking it’s a class variable.

In this context (sinatra classic) @@index marks the index HTML page
structure in ‘erb’ (note line 12… erb :index) which you will see when
you access the ‘index.html’ page.

blog: weblog.areverie.org
wiki: wiki.areverie.org

Panagiotis (atmosx) Atmatzidis

email: [email protected]
URL: http://www.convalesco.org
GnuPG ID: 0x1A7BFEC5
gpg --keyserver pgp.mit.edu --recv-keys 1A7BFEC5

Sinatra does a little bit of magic there.

You probably know that in Ruby the content after an END token is
available via the DATA filehandle… as long as you are in the main file
passed to Ruby to execute.

Sinatra extends this idea to other files to offer inline templates,
processing END by hand:

Then, it evaluates the text accordingly.