Module: Given::Fuzzy

Defined in:
lib/given/fuzzy_number.rb

Defined Under Namespace

Classes: FuzzyNumber

Instance Method Summary collapse

Instance Method Details

#about(*args) ⇒ Object

Create an approximate number that is approximately equal to the given number, plus or minus the delta value. If no explicit delta is given, then the default delta that is about 10X the size of the smallest possible change in the given number will be used.



64
65
66
# File 'lib/given/fuzzy_number.rb', line 64

def about(*args)
  FuzzyNumber.new(*args)
end