Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9b917b4996
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.367 kb
module Cls
VERSION = "0.0.1"
def takes(*args)
define_initialize(args)
end
def define_initialize(args)
assignments = args.map { |a| "@#{a} = #{a}" }.join("\n")
self.class_eval %{
def initialize(#{args.join(", ")})
#{assignments}
end
}
end
def let(name, &block)
define_method(name, &block)
end
end
Jump to Line
Something went wrong with that request. Please try again.