class TextOrder::Order
Attributes
matched[R]
matched?[R]
matcher[R]
text[R]
Public Class Methods
new(matcher, text)
click to toggle source
# File lib/text_order/order.rb, line 5 def initialize(matcher, text) @matcher = matcher @text = text end
Public Instance Methods
actual()
click to toggle source
# File lib/text_order/order.rb, line 10 def actual matcher.actual end
expected()
click to toggle source
# File lib/text_order/order.rb, line 14 def expected matcher.expected end
failure_message()
click to toggle source
# File lib/text_order/order.rb, line 22 def failure_message matcher.failure_message unless matched? end
failure_message_when_negated()
click to toggle source
# File lib/text_order/order.rb, line 26 def failure_message_when_negated matcher.failure_message_when_negated unless matched? end
matches?(actual)
click to toggle source
# File lib/text_order/order.rb, line 18 def matches?(actual) @matched = matcher.matches?(actual) end