summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index e9ad53b..51adefe 100644
--- a/README.markdown
+++ b/README.markdown
@@ -725,6 +725,27 @@ Will return: ['pa','pb','pc']
- *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.
+
+*Examples:*
+
+ private()
+
+called in class `foo::bar` will output the following message if class is called
+from outside module `foo`:
+
+ Class foo::bar is private
+
+You can specify the error message you want to use as a parameter:
+
+ private("You're not supposed to do that!")
+
+- *Type*: statement
+
range
-----
When given range in the form of (start, stop) it will extrapolate a range as