Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.339 kb
require "#{File.dirname(__FILE__)}/helpers"
class Wildcard
include Functor::Method
functor( :foo, Integer, _whatever ) { |int, whatever| "#{int}: #{whatever}" }
end
describe "A functor" do
it "can use a method beginning with '_' to match anything" do
c = Wildcard.new
c.foo( 7, "Smurf").should == "7: Smurf"
end
end
Jump to Line
Something went wrong with that request. Please try again.