hi, i have a line like this
“require File.expand_path(‘some_file_name’, File.dirname(FILE))”
i know this code is pointing to the file’s path. Please help me
understand clearly what is going inside the hood. The project uses
Ruby-2.1.1
hi, i have a line like this
“require File.expand_path(‘some_file_name’, File.dirname(FILE))”
i know this code is pointing to the file’s path. Please help me
understand clearly what is going inside the hood. The project uses
Ruby-2.1.1
The easiest way to go about this is to split the expression in parts,
execute them individually and output the result (e.g. via method p).
sorry that i sound too lame, but i am learning ruby. How do i execute.
is it via irb?
Niristotle Okram wrote in post #1168657:
sorry that i sound too lame, but i am learning ruby. How do i execute.
is it via irb?
You start the program “irb” and enter commands.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs