README.md in mutex_m-0.1.0 vs README.md in mutex_m-0.1.1

- old
+ new

@@ -20,30 +20,31 @@ ## Usage Start by requiring the standard library Mutex_m: +```ruby +require "mutex_m.rb" ``` - require "mutex_m.rb" -``` From here you can extend an object with Mutex instance methods: +```ruby +obj = Object.new +obj.extend Mutex_m ``` - obj = Object.new - obj.extend Mutex_m -``` Or mixin Mutex_m into your module to your class inherit Mutex instance methods. +```ruby +class Foo + include Mutex_m + # ... +end + +obj = Foo.new +# this obj can be handled like Mutex ``` - class Foo - include Mutex_m - # ... - end - obj = Foo.new - # this obj can be handled like Mutex -g``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.