Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 31, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/API Reference - ProMotion Screen.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -455,4 +455,4 @@ Alias for self.view.bounds

#### frame

Alias for self.view.frame
Alias for self.view.frame