a

Ruby code posted
created at 06 May 11:55

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AccessTest
  public
  def pub
    puts "public_method"
  end

  private
  def priv
    puts "private_method"
  end
end

test_super = AccessTest.new
test_super.pub
test_super.priv
200 Bytes in 2 ms with coderay