Module: Gurke::World
- Defined in:
- lib/gurke/world.rb
Class Method Summary collapse
Class Method Details
.create(tag_names: []) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gurke/world.rb', line 6 def create(tag_names: []) Class.new.tap do |cls| cls.send :include, Gurke.world Gurke.config.inclusions.each do |incl| cls.send :include, incl.mod if incl.match?(tag_names) end cls.send :include, Gurke::Steps end.new end |