Class: JazzLibs::CLI::Generator

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/jazz_libs/cli/generator.rb

Class Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object (private)



116
117
118
119
120
121
122
123
# File 'lib/jazz_libs/cli/generator.rb', line 116

def method_missing(method, *args)
  if @locals && @locals.include?(method.to_sym)
    @locals[method.to_sym]
  else
    puts caller
    super
  end
end

Class Method Details

.source_rootObject



9
10
11
# File 'lib/jazz_libs/cli/generator.rb', line 9

def self.source_root
  File.expand_path "../../../../templates", __FILE__
end