Class: Rubygoal::Formation::FormationDSL

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygoal/formation/formation_dsl.rb

Direct Known Subclasses

CustomLines, CustomPosition

Class Method Summary collapse

Class Method Details

.apply(formation, &block) ⇒ Object



4
5
6
7
8
# File 'lib/rubygoal/formation/formation_dsl.rb', line 4

def self.apply(formation, &block)
  dsl = self.new(formation)
  dsl.instance_eval(&block)
  dsl.apply
end