Skip to content

Commit

Permalink
T-39 Add dependecies section. Fix typo clamp?
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Mar 23, 2020
1 parent 1644959 commit 46531a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Rankine).
[.travis-ci.yml](https://github.com/marian13/basic_temperature/blob/9b13cb9909b57c51bb5dc05a8989d07a314e67d6/.travis.yml)
for the exact versions.

### Dependecies

* None.

## Installation

Add this line to your application's Gemfile:
Expand Down Expand Up @@ -152,7 +156,7 @@ Temperature[20, :celsius].between?(Temperature[15, :celsius], Temperature[25, :c
# => true

# Starting from Ruby 2.4.6
Temperature[20, :celsius].clamp?(Temperature[20, :celsius], Temperature[25, :celsius])
Temperature[20, :celsius].clamp(Temperature[20, :celsius], Temperature[25, :celsius])
# => 20 °C
```

Expand Down
2 changes: 1 addition & 1 deletion lib/basic_temperature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
# # => true
#
# # Starting from Ruby 2.4.6
# Temperature[20, :celsius].clamp?(Temperature[20, :celsius], Temperature[25, :celsius])
# Temperature[20, :celsius].clamp(Temperature[20, :celsius], Temperature[25, :celsius])
# # => 20 °C
#
# Please note, if <tt>other</tt> temperature has a different scale, temperature is automatically converted
Expand Down

0 comments on commit 46531a5

Please sign in to comment.