class Expects::Handlers::Proc
Public Class Methods
new(subject, objects)
click to toggle source
Calls superclass method
Expects::Handler::new
# File lib/expects/handlers/proc.rb, line 6 def initialize(subject, objects) expects objects, ::Proc super end
Public Instance Methods
build_message()
click to toggle source
# File lib/expects/handlers/proc.rb, line 15 def build_message "Expected #{@subject.inspect} to get a true from the proc" end
valid?()
click to toggle source
# File lib/expects/handlers/proc.rb, line 11 def valid? @objects.call(@subject) end