README.md in eigindir-0.0.2 vs README.md in eigindir-0.0.3
- old
+ new
@@ -233,11 +233,11 @@
```ruby
class Foo
include Eigindir
- attribute :bar, coerce: &:to_s
+ attribute :bar, coerce: ->(value) { value.to_s }
end
foo = Foo.new
foo.bar = nil
foo.instance_eval "@bar" # => nil
@@ -248,10 +248,10 @@
```ruby
class Foo
include Eigindir
- attribute :baz, coerce: &:to_s, strict: true
+ attribute :baz, coerce: ->(value) { value.to_s }, strict: true
end
foo = Foo.new
foo.bar = nil
foo.instance_eval "@bar" # => ""