In Ruby, to find the list of directories which are searched by load and require methods we can use the global variable $LOAD_PATH
#!/usr/bin/env ruby
p $LOAD_PATH
p $:
$: is a short synonym for $LOAD_PATH name
#!/usr/bin/env ruby
p $LOAD_PATH
p $:
$: is a short synonym for $LOAD_PATH name
No comments:
Post a Comment