Module: RSpec::Matcher::PrependedMethods Private
- Defined in:
- lib/rspec/matcher.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Used to let user define initialize
Instance Method Summary collapse
-
#initialize(expected = UNDEFINED, options = {}, *args, &block) ⇒ Object
private
Stores expected and options then passes remaining args to super.
Instance Method Details
#initialize(expected = UNDEFINED, options = {}, *args, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Stores expected and options then passes remaining args to super
54 55 56 57 58 59 60 61 |
# File 'lib/rspec/matcher.rb', line 54 def initialize expected = UNDEFINED, = {}, *args, &block self.expected = expected .to_a.each do |option| key, value = option send("#{key}=", value) end super(*args, &block) end |