This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrivacyExample | |
def some_public_method | |
self.some_private_method | |
end | |
def some_private_method | |
"o hai" | |
end | |
private :some_private_method | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DashboardController < ResourceController | |
def get | |
# show dashboard | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def some_method | |
puts "In some_method" | |
def some_other_method | |
puts "In some other method" | |
"Foo" | |
end | |
"Bar" | |
end | |
end |
NewerOlder