On Tue, Oct 23, 2012 at 12:18 AM, Arlen Christian Mart Cuss <[email protected]> wrote:
> Could you give a concrete example? Right now your question is very abstract,
> and it sounds as if you're doing everything right, so the devil's most
> likely in the details.

Absolutely.  This works very simple:

$ ruby x.rb
yes!
$ cat -n x.rb
     1
     2
     3  class A
     4    def self.foo() puts "yes!" end
     5  end
     6
     7  class B
     8    def bar
     9      A.foo
    10    end
    11  end
    12
    13  B.new.bar

Cheers

robert

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

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google 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 https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to