darthjee/core_ext

View on GitHub
MATH_README.md

Summary

Maintainability
Test Coverage
## MATH

### .average
calculates the average of the given values

```ruby
Math.average([0, 1, 2, 3, 4, 5])

# returns 2.5
```

It can also be used to calculate the average of weighted values

```ruby
Math.average(
  0 => 1,
  1 => 2,
  2 => 3,
  3 => 4,
  4 => 6
)

# returns 2.6666
```

## Added by Object
- [#is_any?](OBJECT_README.md#is_any?)
- [#trueful?](OBJECT_README.md#trueful?)

## Added by Class
- [.default_value](CLASS_README.md#default_value)
- [.default_values](CLASS_README.md#default_values)
- [.default_reader](CLASS_README.md#default_reader)
- [.default_readers](CLASS_README.md#default_readers)