tags:

views:

51

answers:

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?

+2  A: 

There is an excellent answer to this here: http://stackoverflow.com/questions/318144/what-is-the-difference-between-include-and-require-in-ruby/318170#318170

Zaz