Added a note to specify self as the receiver for PM::Screen#title=

This commit is contained in:
Austin Seraphin
2015-03-31 19:51:03 -04:00
parent 410dc3fcd7
commit a3418c5438

View File

@@ -212,13 +212,13 @@ class MyScreen < PM::Screen
#### title=(title)
Sets the text title of current screen instance.
Sets the text title of current screen instance. Note that you must declare `self` as the receiver.
```ruby
class SomeScreen
def on_load
# This sets this instance's title
title = "Something else"
self.title = "Something else"
end
end
```
@@ -455,4 +455,4 @@ Alias for self.view.bounds
#### frame
Alias for self.view.frame
Alias for self.view.frame