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
  • 15,753
  • 24
  • 94
  • 139

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
  • 7,255
  • 6
  • 50
  • 71