hai guys
can any body guide me how to get the linux home path using ruby
langauage.
thanks in advance
bye
Keadr
hai guys
can any body guide me how to get the linux home path using ruby
langauage.
thanks in advance
bye
Keadr
Kjedar Sip wrote:
hai guys
can any body guide me how to get the linux home path using ruby
langauage.thanks in advance
bye
Keadr
ENV[‘HOME’]
On Thu, 19 Apr 2007 19:14:16 +0900, Kjedar Sip wrote:
can any body guide me how to get the linux home path using ruby
langauage.
The HOME environment variable should be set:
ENV[‘HOME’]
Kjedar Sip wrote:
hai guys
can any body guide me how to get the linux home path using ruby
langauage.
irb(main):010:0> ENV[“HOME”]
=> “/home/cynicalryan”
Phillip “CynicalRyan” Gawlowski
http://cynicalryan.110mb.com/
http://clothred.rubyforge.org
Rule of Open-Source Programming #33:
Don’t waste time on writing test cases and test scripts - your users are
your best testers.
thanks for reply
by
kedar
homepath = Pathname.new(ENV[‘HOME’])
Would be my guess.
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