Browse Source

Update documentation;

bjorn 10 years ago
parent
commit
c25d3e2f41
1 changed files with 14 additions and 4 deletions
  1. 14 4
      doc/README.md

+ 14 - 4
doc/README.md

@@ -430,7 +430,7 @@ Creates a new Subject.
 
 Arguments:
 
-- `value` (`*`) - The initial value.
+- `value` (`*...`) - The initial values.
 
 Returns:
 
@@ -450,13 +450,13 @@ Arguments:
 
 ---
 
-#### `:onNext(value)`
+#### `:onNext(values)`
 
-Pushes a value to the Subject. It will be broadcasted to all Observers.
+Pushes zero or more values to the Subject. It will be broadcasted to all Observers.
 
 Arguments:
 
-- `value` (`*`)
+- `values` (`*...`)
 
 ---
 
@@ -474,3 +474,13 @@ Arguments:
 
 Signal to all Observers that the Subject will not produce any more values.
 
+---
+
+#### `:getValue()`
+
+Returns the last value emitted by the Subject, or the initial value passed to the constructor if nothing has been emitted yet.
+
+Returns:
+
+- `*...`
+