README.md in appjs-rails-0.0.1 vs README.md in appjs-rails-1.0.0
- old
+ new
@@ -1,6 +1,7 @@
# Appjs::Rails
+[![Gem Version](https://badge.fury.io/rb/appjs-rails.png)](http://badge.fury.io/rb/appjs-rails)
The additional library for javaScript
## Installation
@@ -16,14 +17,27 @@
$ gem install appjs-rails
## Usage
+Creation new singleton
+
```javascript
-app.addClass('Example', function() {
+app._addSingleton('example', function() {
return {
toString: 'Class Example'
}
} );
app.example.init();
app.example.toString; // 'Class Example'
```
+Generaion UUID
+
+```javascript
+app._uuid(); //6b644386-6ccb-98af-1144-6b8de194387a
+```
+
+# License
+
+appjs-rails uses the MIT license. Please check the [LICENSE][] file for more details.
+
+[license]: https://github.com/raglub/appjs-rails/blob/master/LICENSE