On Sep 11, 9:34 am, Sijo Kg <[EMAIL PROTECTED]> wrote:
> Hi
>    I have in MailSending class
> def self.send_mail_to_all_contacts(problem)
>   description=split_name_and_email_array(joined_array,problem)
> end
>
> private
>   def split_name_and_email_array(name_email_array,pb)
>   code......
>   split_value="somevaluehere"
> end
>
>    But here I get error as
> undefined method `split_name_and_email_array' for MailSending:Class
>     So Can't I call a private method from a class method
>

You can't but that isn't the problem here. You can't call an instance
method without an instance of the class (which you don't have).

Fred

> Thanks in advance
> Sijo
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to