From a3418c54381f21c545896633dedfb276dcbcb57d Mon Sep 17 00:00:00 2001 From: Austin Seraphin Date: Tue, 31 Mar 2015 19:51:03 -0400 Subject: [PATCH] Added a note to specify self as the receiver for PM::Screen#title= --- docs/API Reference - ProMotion Screen.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/API Reference - ProMotion Screen.md b/docs/API Reference - ProMotion Screen.md index 55e1e3a0..490797c4 100644 --- a/docs/API Reference - ProMotion Screen.md +++ b/docs/API Reference - ProMotion Screen.md @@ -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 \ No newline at end of file +Alias for self.view.frame