Module: RSpec::Dry::Struct
- Defined in:
- lib/rspec/dry/struct.rb,
lib/rspec/dry/struct/matcher.rb,
lib/rspec/dry/struct/version.rb
Defined Under Namespace
Classes: Matcher
Constant Summary collapse
- VERSION =
'0.5.0'.freeze
Instance Method Summary collapse
-
#have_attribute(name, type = nil) ⇒ Object
rubocop:disable Style/PredicateName.
Instance Method Details
#have_attribute(name, type = nil) ⇒ Object
rubocop:disable Style/PredicateName
9 10 11 |
# File 'lib/rspec/dry/struct.rb', line 9 def have_attribute(name, type = nil) # rubocop:disable Style/PredicateName Matcher.new(name, type) end |