Class extension

  • Thread starter Daniel Stephens
  • Start date
D

Daniel Stephens

[Note: parts of this message were removed to make it a legal post.]

Hello all, newcomer to Ruby here and have a quick question a shorthand
version of extend. below is the folder structure I have.

track
|
| - folderA
|
| - temp.rb
|
| - track
|
| - temp.rb


in the temp.rb located in track it's defined like so

module track

class track < ::track
<snip...>

end

Can someone help me understand this shortcut? Thanks in advance.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top