Module: Ramcrest::HasAttribute

Defined in:
lib/ramcrest/has_attribute.rb

Defined Under Namespace

Classes: Matcher

Class Method Summary collapse

Class Method Details

.has_attribute(attribute_name, value_matcher = Ramcrest::Anything.anything()) ⇒ Object



8
9
10
# File 'lib/ramcrest/has_attribute.rb', line 8

def has_attribute(attribute_name, value_matcher = Ramcrest::Anything.anything())
  Matcher.new(attribute_name, value_matcher)
end