A
ANDREW BAINE
Why would require work where load does not? See the output below:
irb(main):001:0> filename = 'lib/sudoku/cell'
=> "lib/sudoku/cell"
irb(main):002:0> load filename
LoadError: no such file to load -- lib/sudoku/cell
from (irb):2:in 'load'
from (irb):2
irb(main):003:0> require filename
=> true
irb(main):004:0> c = Sudoku::Cell.new
=> #<Sudoku::Cell:0x2c20258 @number = nil>
Thanks for any help from an eager Ruby convert
irb(main):001:0> filename = 'lib/sudoku/cell'
=> "lib/sudoku/cell"
irb(main):002:0> load filename
LoadError: no such file to load -- lib/sudoku/cell
from (irb):2:in 'load'
from (irb):2
irb(main):003:0> require filename
=> true
irb(main):004:0> c = Sudoku::Cell.new
=> #<Sudoku::Cell:0x2c20258 @number = nil>
Thanks for any help from an eager Ruby convert