summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-03-05 19:15:41 +0000
committerTP Honey <tphoney@users.noreply.github.com>2015-03-05 19:15:41 +0000
commitbf8e5b0573f78f2c2c780494a735bfac25d4488d (patch)
tree2c81ecba270068294b25ad7d2b17919cb71fee04 /README.markdown
parent668b3c31b591b9ee67ab215715b95adf8e78608a (diff)
parent4a68b224c4a4a986be6b4bf9580fc4f23251e3c6 (diff)
Merge pull request #422 from cyberious/assert_private
Assert private
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.markdown b/README.markdown
index cbe42b4..9c6a54b 100644
--- a/README.markdown
+++ b/README.markdown
@@ -363,8 +363,8 @@ returns the value of the resource's parameter. For example, the following code r
* `prefix`: This function applies a prefix to all elements in an array or to the keys in a hash. For example, `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc'], and `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}. *Type*: rvalue
-* `private`: This function sets the current class or definition as private.
-Calling the class or definition from outside the current module will fail. For example, `private()` called in class `foo::bar` outputs the following message if class is called from outside module `foo`:
+* `assert_private`: This function sets the current class or definition as private.
+Calling the class or definition from outside the current module will fail. For example, `assert_private()` called in class `foo::bar` outputs the following message if class is called from outside module `foo`:
```
Class foo::bar is private
@@ -373,7 +373,7 @@ Calling the class or definition from outside the current module will fail. For e
You can specify the error message you want to use:
```
- private("You're not supposed to do that!")
+ assert_private("You're not supposed to do that!")
```
*Type*: statement