Skip to content

Commit

Permalink
Add coverage badge to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mmainz committed Aug 24, 2023
1 parent ca5ef40 commit ef27a7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/mmainz/valued.svg?branch=master)](https://travis-ci.org/mmainz/valued)
[![Coverage Status](https://coveralls.io/repos/github/mmainz/valued/badge.svg?branch=master)](https://coveralls.io/github/mmainz/valued?branch=master)

# Valued

Expand Down Expand Up @@ -82,7 +82,8 @@ p quantity
=> #<Quantity amount=2 unit="m">
```

You can create a duplicate of your object with updated attributes by using `update`.
You can create a duplicate of your object with updated attributes by using
`update`.

```ruby
quantity = Quantity.new(unit: 'm', amount: 2)
Expand All @@ -93,7 +94,8 @@ p updated_quantity
=> #<Quantity amount=2 unit="yard">
```

If you really need a mutable object, just use `Valued::Mutable` instead of `Valued`.
If you really need a mutable object, just use `Valued::Mutable` instead of
`Valued`.

```ruby
require 'valued'
Expand Down

0 comments on commit ef27a7f

Please sign in to comment.