Unterminated string meets end of file

I am new to ruby and practising modules

# here is the file mystuff.rb
module MyStuff
    def MyStuff.apple()
        puts "I AM APPLES!"
    end
end

#here is the file ex1.rb
require 'mystuffb
MyStuff.apple()

when i execute ex1.rb it throws an error

ex1.rb:1: unterminated string meets end of file

···

--
Posted via http://www.ruby-forum.com/.

Quoting siva kumar (lists@ruby-forum.com):

#here is the file ex1.rb
require 'mystuffb
MyStuff.apple()

when i execute ex1.rb it throws an error

ex1.rb:1: unterminated string meets end of file

Eh. Line 1 is

require 'mystuffb

Does it not look like something is missing?

Carlo

···

Subject: unterminated string meets end of file
  Date: mer 10 apr 13 03:30:47 +0900

--
  * Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
  * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

@Carlo

Sry there was a mistake i've edited the post

···

--
Posted via http://www.ruby-forum.com/.

Solved it !!

added " $LOAD_PATH.unshift(File.dirname(__FILE__)) " before require.

Seems different versions of ruby works diffrently!

···

--
Posted via http://www.ruby-forum.com/.

That's a fix for a completely different issue.

Cheers

robert

···

On Wed, Apr 10, 2013 at 8:49 AM, siva kumar <lists@ruby-forum.com> wrote:

Solved it !!

added " $LOAD_PATH.unshift(File.dirname(__FILE__)) " before require.

Seems different versions of ruby works diffrently!

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/