Hi Miga,

Thank you for your suggestions! your advices is helpful for me. I will think
your words carefully.

Best Regards,
Phoenix


On Tue, Apr 14, 2009 at 11:57 PM, miga <[email protected]> wrote:

>
>
>
> On Apr 14, 5:36 pm, Phoenix Nirvana <[email protected]> wrote:
> > Hi Everyone,
> >
> > I am a Ruby newer. This is my "Ruby Blocks and Closures" homework
> exercise
> > code. If you have time ,please review it.
> I don't think it is fair to publish your whole homework.
>
> Anyway, here are some comments:
>
> >>     puts Time.now
> >     current_month = Time.now.month
> why do you calcultate twice Time.now?
>
> > my_instance = MyOwnRubyClass.new
> > my_instance.my_own_ruby_method("Zhang", "Phoenix") do |i, j ,k|
> >     puts " " + i.reverse + ", " + j.reverse
> why do you reverse k times i and j strings?
>
> >   end
> > end
> >
> > my_instance.my_own_ruby_method("Zhang", "Phoenix") do |i, j, k|
> >     puts " " + "first value = " + i.length.to_s + ", second value = " +
> > j.length.to_s + ", addition value = " + (i.length + j.length).to_s
> why do you calculate k times length of i and j and their addition?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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