How to call the file?

  I have created one folder in lib called 'commands'. And i created

one file called get.rb inside that commands folder. How can i call that
file from some other rb file.? Whether i need to use ‘include’ ? or any
other best way ?

 I have created one folder in lib called 'commands'. And i created

one file called get.rb inside that commands folder. How can i call that
file from some other rb file.? Whether i need to use ‘include’ ? or any
other best way ?

require ‘commands/get’

should do it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs