Module: Zync::Generators

Extended by:
Generators
Included in:
Generators
Defined in:
lib/zync-gen/version.rb,
lib/zync-gen/generators.rb,
lib/zync-gen/generators/app.rb,
lib/zync-gen/generators/cli.rb,
lib/zync-gen/generators/base.rb,
lib/zync-gen/generators/actions.rb,
lib/zync-gen/generators/named_base.rb

Defined Under Namespace

Modules: Actions Classes: AppBuilder, AppGenerator, Base, Cli, Error, NamedBase

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#add_generator(name, klass) ⇒ Object

Add a generator



20
21
22
# File 'lib/zync-gen/generators.rb', line 20

def add_generator(name, klass)
  mappings[name] = klass
end

#mappingsObject

Return a ordered list of task with their class



13
14
15
# File 'lib/zync-gen/generators.rb', line 13

def mappings
  @_mappings ||= {}
end