README.md in liner-0.2.1 vs README.md in liner-0.2.2
- old
+ new
@@ -59,20 +59,28 @@
e[:layout] # => "V8"
e[:layout] = "V6" # => "V6"
e[:foo] = "Bar" # => ArgumentError: Invalid liner attribute: 'foo'
```
-If you want a full attribute hash, we have that (`to_h` and `to_hash` also work).
+If you want a full attribute hash, we have that.
```ruby
e.liner # => { :layout => 'V6', :fuel => 'diesel' }
```
+You can set attributes en masse by sending an array or hash.
+
+```ruby
+e.liner = { layout: 'I4', fuel: 'biofuel' }
+```
+```ruby
+e.liner_values = ['I4', 'biofuel']
+```
+
### Inspection
-It's always nice not to have to set up inspection (note that `to_s` is the same
-here).
+A nice inspection method is always handy.
```ruby
e.inspect
# => #<Engine layout="V6", fuel="gasoline">
```
@@ -103,11 +111,11 @@
`liner_get`, or `super`.
```ruby
class Taco < Liner.new(:filling)
def filling
- if read_liner(:filling) == 'ground beef'
+ if liner_get(:filling) == 'ground beef'
'Steak'
elsif @filling == 'unknown fish'
'Atlantic Cod'
else
super()
@@ -164,10 +172,27 @@
Guitar.new('C', 6)
# => #<Guitar key="C", strings=6>
```
+### Supported Ruby Versions
+
+This library aims to support and is tested against the following Ruby
+implementations:
+
+* Ruby 1.9.3
+* Ruby 2.0.0
+* Ruby 2.1.0
+* [JRuby](http://jruby.org/)
+* [Rubinius](http://rubini.us/)
+
+If something doesn't work on one of these versions, it's a bug.
+
+This library may inadvertently work (or seem to work) on other Ruby versions or
+implementations, however support will only be provided for the implementations
+listed above.
+
## Installation
Add this line to your application's Gemfile:
gem 'liner'
@@ -177,11 +202,9 @@
$ bundle
Or install it yourself as:
$ gem install liner
-
-
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)