Method: ArgumentSpecification::Matchers::BeA#initialize
- Defined in:
- lib/argspec/matchers/be_a.rb
#initialize(expected) ⇒ BeA
Create a new matcher instance
Arguments:
expected: (Class)
Example:
>> ArgumentSpecification::Matchers::BeA.new(Symbol)
=> #<ArgumentSpecification::Matchers::BeA:0x00000000000000 @expected=Symbol>
17 18 19 |
# File 'lib/argspec/matchers/be_a.rb', line 17 def initialize(expected) @expected = expected end |