useful_tools.rb
module Tools
def sayhi(name)
puts "hello #{name}"
end
def saybye(name)
puts "bye #{name}"
end
end
include Tools
Tools.saybye("mike")
require_relative "useful_tools.rb"
include Tools
Tools.sayhi("mile")
Go to list of users who liked
More than 3 years have passed since last update.
useful_tools.rb
module Tools
def sayhi(name)
puts "hello #{name}"
end
def saybye(name)
puts "bye #{name}"
end
end
include Tools
Tools.saybye("mike")
require_relative "useful_tools.rb"
include Tools
Tools.sayhi("mile")
Register as a new user and use Qiita more conveniently
Go to list of users who liked