1

Possible Duplicate:
What is the difference between include and require in Ruby?

require File.join(File.dirname(__FILE__), 'load_test_data.rb')
require 'find'
require 'fileutils'

include CommonValidators

Can someone please give me proper example to understand the difference between require and include?

Community
  • 1
  • 1
krunal shah
  • 16,089
  • 25
  • 97
  • 143

1 Answers1

2

There is an excellent answer to this here: What is the difference between include and require in Ruby?

Community
  • 1
  • 1
Mario Zigliotto
  • 8,315
  • 7
  • 52
  • 71