[ create a new paste ] login | about

Link: http://codepad.org/suw9aJ0b    [ raw code | output | fork ]

Ruby, pasted on Jun 5:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Parent
  private
  def method
    p true
  end
end

class Child < Parent
  public
  def call_method
    method
  end
end

Child.new.call_method


Output:
1
true


Create a new paste based on this one


Comments: