method
init_module
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Story::Step
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
init_module(name, &block)
public
Hide source
# File lib/spec/story/step.rb, line 19 def init_module(name, &block) sanitized_name = sanitize(name) @mod = Module.new do define_method(sanitized_name, &block) end end