I am having a heck of a time with assignment (home work) 2 of the ruby class.  
Time.now is to print out from the method but each time I call the method,  I’m 
getting the following:

 

Fri Apr 10 01:01:47 -0500 2009

gnaS, nihS

Fri Apr 10 01:01:47 -0500 2009

gnaS, nihS

Fri Apr 10 01:01:47 -0500 2009

gnaS, nihS

Fri Apr 10 01:01:47 -0500 2009

gnaS, nihS

 

The current datetime is not displayed at all in ther example.  Am I missing 
something?  I don’t want to proceed without finishing this.

 

Thanks,

Charles O’Riley

 

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of 
The Wizard
Sent: Friday, April 10, 2009 9:55 AM
To: [email protected]
Cc: ruby-on-rails-programming-with-passion
Subject: [rails-development] Re: Week 3: Homework

 

Reread the assignment more carefully; the requirement is to make up three 
method names of your own choosing, not to replicate the example. My ouput looks 
like this

---- Define class MyOwnMetaClass
---- Define method method_missing for MyOwnMetaClass
---- Create an instance of MyOwnMetaClass
----Call non-existent methods
bogus_method_name has 17 characters

there_is_no_method_here has 23 characters

method2 has 7 characters

The idea is to show that the missing_method can deduce the string length of the 
method name, no matter how long it is.

Mark Almeida

Al Snow wrote: 

Thanks. I agree, so I going to submit my homework
with the "m545 method has 4 characters".
I can fix it later if we learn different.
 
On Apr 10, 8:15 am, mbanolas  <mailto:[email protected]> <[email protected]> 
wrote:
  

In my opinion it is just a mistake.
 
On 10 abr, 03:17, Al Snow  <mailto:[email protected]> <[email protected]> wrote:
 
    

I noted that the 3rd output line "m545 has 4 characters" does not
have the word "method" and I can not see why it is different.
Am I missing something?
      

Thanks,
Al Snow
      

 
 
  



 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to