Module: SpinningWheel
- Defined in:
- lib/spinning_wheel.rb,
lib/spinning_wheel/fabric.rb,
lib/spinning_wheel/syntax.rb,
lib/spinning_wheel/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.create(name) ⇒ Object
14 15 16 |
# File 'lib/spinning_wheel.rb', line 14 def self.create(name) @fabrics[name].build end |
.define(&block) ⇒ Object
2 3 4 |
# File 'lib/spinning_wheel/syntax.rb', line 2 def self.define(&block) DSL.run(block) end |
.register_fabric(fabric) ⇒ Object
18 19 20 |
# File 'lib/spinning_wheel.rb', line 18 def self.register_fabric(fabric) @fabrics[fabric.name] = fabric end |