Class: Ramcrest::Anything::Matcher

Inherits:
Object
  • Object
show all
Includes:
Matcher
Defined in:
lib/ramcrest/anything.rb

Instance Method Summary collapse

Methods included from Matcher

#do_match, #mismatch, #success

Instance Method Details

#descriptionObject



18
19
20
# File 'lib/ramcrest/anything.rb', line 18

def description
  "anything"
end

#matches?(actual) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/ramcrest/anything.rb', line 14

def matches?(actual)
  success
end