class Tengu::Matcher
Attributes
description[R]
Public Class Methods
new(description, &block)
click to toggle source
# File lib/tengu/matcher.rb, line 4 def initialize(description, &block) @description = description @block = block end
Public Instance Methods
matches?(object)
click to toggle source
# File lib/tengu/matcher.rb, line 9 def matches?(object) @block.call(object) end