K
Kyung won Cheon
class A
class << A
def aaa
end
protected
def bbb
end
private
def ccc
end
end
end
p A.singleton_methods # => ["aaa", "bbb"]
# private method is not a singleton method.. Why?
# Anyway 'ccc' is defined in a singleton class of A ?
###############
# Help Me^^
###############
class << A
def aaa
end
protected
def bbb
end
private
def ccc
end
end
end
p A.singleton_methods # => ["aaa", "bbb"]
# private method is not a singleton method.. Why?
# Anyway 'ccc' is defined in a singleton class of A ?
###############
# Help Me^^
###############