Class: Spritz::Plugins::MoaiPlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/spritz/plugins/moai_plugin.rb

Defined Under Namespace

Classes: MoaiQuadDeckStep

Class Method Summary collapse

Class Method Details

.add_options(opts, steps) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/spritz/plugins/moai_plugin.rb', line 6

def self.add_options(opts, steps)
  opts.on("--moai:quad-decks PATH", String,
    "Generate code to create quads and decks. One MOAIGfxQuadDeck2D is " \
    "created for each base name, with suffix number being the index.") do |v|
    steps.push(MoaiQuadDeckStep.new(v))
  end
end