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,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top