-
-
Save lbvf50mobile/a28cc4e28eb75fe94dc9d8648735593b to your computer and use it in GitHub Desktop.
using require
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift(File.dirname(__FILE__)) | |
require "two" | |
require "two" | |
puts "It works." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "this is two rb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this works: bundler exec ruby 1.rb
this works too: 1.rb