Need Help With This Ruby Program!

I am attaching my '.rb' file. Please check it. I am getting an error-

"C:/Ruby193/bin/rubysrc/Event_Manager/event_manager.rb:78: syntax error,
unexpected $end, expecting keyword_end"

How to rectify it? Where should I place the 'end' exactly???

Attachments:
http://www.ruby-forum.com/attachment/7764/event_manager.rb

···

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

Looks like the class needs the end. But, I only took a quick look.

-GregD

···

----- Original Message -----

From: "Kaushik Sharma L." <lists@ruby-forum.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Wednesday, September 26, 2012 3:13:49 PM
Subject: Need Help With This Ruby Program!!

I am attaching my '.rb' file. Please check it. I am getting an error-

"C:/Ruby193/bin/rubysrc/Event_Manager/event_manager.rb:78: syntax error,
unexpected $end, expecting keyword_end"

How to rectify it? Where should I place the 'end' exactly???

Attachments:
http://www.ruby-forum.com/attachment/7764/event_manager.rb

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

The problem is the clean_number method and the print_numbers method
and the class as a whole (there are 3 ends missing in all)

Thank You Peter, I was able to rectify it and complete that part of
code.

I need a help.. I am attaching my '.rb' file. I installed the 'Sunlight'
gem
in my through my terminal, but when I am running the dependencies file I
am receiving the error..

"C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- sunlight (LoadError)
  from
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
  from C:/Ruby193/bin/rubysrc/Event_Manager/event_manager.rb:3:in
`<main>'"

how to rectify it? please help me!

Peter Hickman wrote in post #1077673:

···

The problem is the clean_number method and the print_numbers method
and the class as a whole (there are 3 ends missing in all)

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

This means that the gem sunlight is not installed or at least not
installed correctly.

I installed sunlight on my system and it works fine:

$ sudo gem install sunlight
Password:
Successfully installed ym4r-0.6.1
Successfully installed sunlight-1.1.0
2 gems installed
Installing ri documentation for ym4r-0.6.1...
Installing ri documentation for sunlight-1.1.0...
Installing RDoc documentation for ym4r-0.6.1...
Installing RDoc documentation for sunlight-1.1.0...
$ irb
irb(main):001:0> require 'sunlight'
=> true
irb(main):002:0> ^D
$