Method: ArgumentSpecification::Matchers::BeWithinRange#initialize

Defined in:
lib/argspec/matchers/be_within_range.rb

#initialize(range) ⇒ BeWithinRange

Create a new matcher instance

Arguments:

range: (Range)

Example:

>> ArgumentSpecification::Matchers::BeWithinRange.new(1..10)
=> #<ArgumentSpecification::Matchers::BeWithinRange:0x00000000000000 @range=1..10>


17
18
19
# File 'lib/argspec/matchers/be_within_range.rb', line 17

def initialize(range)
  @range = range
end