Project

General

Profile

Actions

Feature #6287

closed

nested method should only be visible by nesting/enclosing method

Added by botp (bot pena) over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
[ruby-core:44329]

Description

def test1
def test2
p "i am test2"
end
test2
end

test1
"i am test2" # ok

test2
"i am test2" # not ok (imho), this should fail; ie test2 should only be visible by test1, not by outside.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #4085: Refinements and nested methodsClosedshugo (Shugo Maeda)11/24/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0