# method access permission # output: # foobar # Foo class Foo public :printf def baz print "baz\n" end private :baz def quux print "in QUUX " baz() end end def foobar print "foobar\n" end f = Foo.new #Foo.private :printf class Foo # redefines foobar's scope public :foobar end f.foobar f.printf "%s\n", Foo f.quux class Bar < Foo def quux super baz() end end Bar.new.quux >index : ruby.git
The Ruby Programming Language
summaryrefslogtreecommitdiff
path: root/compar.c
AgeCommit message (Expand)Author
2019-04-22Clarify requirements of <=>Shugo Maeda
2019-03-22[DOC] fix markups [ci skip]nobu
2016-08-11Comparable#clampnobu
2016-08-11compar.c: utility functionsnobu
2015-12-15* compar.c: Update doc for == [#7688] [ci-skip]marcandre
2015-02-21compar.c: variable name [ci skip]nobu
2015-02-11* compar.c (cmp_equal): no more error hiding for Comparable#==.eregon
2015-01-13compar.c: fix messagenobu
2014-08-21compar.c: use Module#to_snobu
2014-08-19compar.c: preserve encodingsnobu