README.md in appjs-rails-1.0.1 vs README.md in appjs-rails-1.0.2

- old
+ new

@@ -16,26 +16,41 @@ Or install it yourself as: $ gem install appjs-rails -## Usage - The app file will be added to the asset pipeline when you in file ```app/assets/javascripts/application.js``` add this line: +``` //= require app +``` -Creation new singleton +## Usage +Creation new singleton without initialize + ```javascript app._singleton.add('example', function() { return { toString: 'Class Example' } } ); app.example.init(); app.example.toString; // 'Class Example' ``` + +Creation new singleton with initialize + + +```javascript +app._singleton.init('example', function() { + return { + toString: 'Class Example' + } +} ); +app.example.toString; // 'Class Example' +``` + Generation UUID ```javascript app._uuid(); //6b644386-6ccb-98af-1144-6b8de194387a ```