Hi, I''m getting the following error trying to use the require_relative method in Ruby: "person.rb:3: undefined method `require_relative'' for main:Object (NoMethodError)" Is require_relative not supposed to be standard in Ruby 1.9? I know I can use require, but I thought require_relative is now standard in 1.9... JACQUES DU PREEZ PROPCTRL DEVELOPER [Description: Description: C:\Users\martins\AppData\Roaming\Microsoft\Signatures\logo.jpg] Tel: +27 21 658 9700 Website: www.korbitec.com<http://www.korbitec.com/> Fax: +27 21 658 9701 E-mail: jacquesd at korbitec.com<mailto:jacquesd at korbitec.com> Mobile +27 84 922 7284 Customer Service Centre: 0861 111 724 [Description: Description: C:\Users\martins\AppData\Roaming\Microsoft\Signatures\prop24.jpg]<http://www.property24.com/>[Description: Description: C:\Users\martins\AppData\Roaming\Microsoft\Signatures\propctrl.jpg]<http://www.property24.com/>[Description: Description: C:\Users\martins\AppData\Roaming\Microsoft\Signatures\ghostconvey.jpg]<http://www.ghostconvey.com/>[Description: Description: C:\Users\martins\AppData\Roaming\Microsoft\Signatures\windeed.jpg]<http://www.windeed.co.za/> This e-mail is subject to the Korbitec (Pty) Ltd e-mail disclaimer which can be found at www.korbitec.com/email_disclaimer.htm <http://www.korbitec.com/email_disclaimer.htm> or or may be obtained by e-mailing csc at korbitec.com<mailto:csc at korbitec.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3753 bytes Desc: image001.jpg URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0005.jpg> -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 2892 bytes Desc: image002.jpg URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0006.jpg> -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 2619 bytes Desc: image003.jpg URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0007.jpg> -------------- next part -------------- A non-text attachment was scrubbed... Name: image004.jpg Type: image/jpeg Size: 2444 bytes Desc: image004.jpg URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0008.jpg> -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.jpg Type: image/jpeg Size: 2474 bytes Desc: image005.jpg URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/2d783c83/attachment-0009.jpg>
On Jun 15, 2011, at 10:42 AM, Jacques du Preez wrote:> Hi, > > I?m getting the following error trying to use the require_relative method in Ruby: > > ?person.rb:3: undefined method `require_relative'' for main:Object (NoMethodError)? > > Is require_relative not supposed to be standard in Ruby 1.9? I know I can use require, but I thought require_relative is now standard in 1.9...IronRuby''s Ruby-1.9 support is not complete, and require_relative has not been implemented yet in IronRuby. ~js -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/41384d88/attachment.html>
Hi Jacques, I?m getting the following error trying to use the require_relative method in Ruby:> person.rb:3: undefined method `require_relative'' for main:Object > (NoMethodError)? > > Is require_relative not supposed to be standard in Ruby 1.9? I know I can > use require, but I thought require_relative is now standard in 1.9... >Which version of IronRuby are you using ? -- Thibaut> > > *JACQUES DU PREEZ*** > > *PROPCTRL DEVELOPER*** > > > > [image: Description: Description: > C:\Users\martins\AppData\Roaming\Microsoft\Signatures\logo.jpg] > > *Tel:* > > +27 21 658 9700 > > *Website*: www.korbitec.com > > *Fax:* > > +27 21 658 9701 > > *E-mail: *jacquesd at korbitec.com > > *Mobile* > > +27 84 922 7284 > > *Customer Service Centre:* 0861 111 724 > > [image: Description: Description: > C:\Users\martins\AppData\Roaming\Microsoft\Signatures\prop24.jpg]<http://www.property24.com/>[image: > Description: Description: > C:\Users\martins\AppData\Roaming\Microsoft\Signatures\propctrl.jpg]<http://www.property24.com/>[image: > Description: Description: > C:\Users\martins\AppData\Roaming\Microsoft\Signatures\ghostconvey.jpg]<http://www.ghostconvey.com/>[image: > Description: Description: > C:\Users\martins\AppData\Roaming\Microsoft\Signatures\windeed.jpg]<http://www.windeed.co.za/> > > *This e-mail is subject to the Korbitec (Pty) Ltd e-mail disclaimer which > can be found at www.korbitec.com/email_disclaimer.htm or > or may be obtained by e-mailing csc at korbitec.com*** > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2619 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0005.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2892 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0006.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2444 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0007.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3753 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0008.jpe> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2474 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20110615/831d1f13/attachment-0009.jpe>