var Generator = require('yeoman-generator');

module.exports = class extends Generator {
  // The name `constructor` is important here
  constructor(args, opts) {
    super(args, opts);
    this.option('babel'); // This method adds support for a `--babel` flag
  }
  
  method1() {
    this.log('method 1 just ran');
    this.fs.copyTpl(
      this.templatePath('interface.ts'),
      this.destinationPath('public/IName.ts'),
      { name: 'Name' }
    );
  }

  method2() {
    this.log('method 2 just ran');
  }
  
};

@@ -267,15 +267,102 @@
  %0A  
-method1
+initializing() %7B %7D%0A  %0A  prompting() %7B %7D%0A  %0A  configuring() %7B %7D%0A  %0A  default() %7B %7D%0A  %0A  writing
 () %7B
@@ -547,56 +547,55 @@
 %0A%0A  
-method2
+conflicts
 () %7B
+ %7D
 %0A  
+%0A
   
-this.log('method 2 just ran');%0A 
+install() %7B %7D%0A  %0A  end() %7B
  %7D%0A 

Update index.js