No and no.
The only appearances in Ruby are public, protected, and private. There is no concept of file-level visibility. Perhaps you can "trick" and do something like this:
class Foo
def to_bar
Bar.new.file_private
end
end
class Bar
def file_private
raise unless caller[0].split(':')[0] == __FILE__
end
end
Foo.new.to_bar
Bar.new.file_private
. . , .
, . . , public/protected/private. send , . - , , . , :P.
, , . - , , , , , , , .