class Shaped::Shapes::Method
Public Class Methods
new(method_name)
click to toggle source
# File lib/shaped/shapes/method.rb, line 4 def initialize(method_name) @method_name = method_name end
Public Instance Methods
matched_by?(object)
click to toggle source
# File lib/shaped/shapes/method.rb, line 8 def matched_by?(object) !!object.public_send(@method_name) end
to_s()
click to toggle source
# File lib/shaped/shapes/method.rb, line 12 def to_s "object returning truthy for ##{@method_name}" end