Class: Ronin::Generators::DirGenerator

Public Visibility

Public Class Method Summary

generate(path, options = {}, arguments = [])

Invokes the generator.

Public Class Methods Inherited from Ronin::Generators::Generator

inherited, source_root

Public Instance Methods Inherited from Ronin::Generators::Generator

generate

Public Class Method Details

generate

public generate(path, options = {}, arguments = [])

Invokes the generator.

Meta Tags

Example:

  gen.generate('path/to/dir')

Parameters:

[String] path

The directory to generate within.

[Hash] options

Additional command-line options for the generator.

[Array] arguments

Additional command-line arguments for the generator.

[View source]


46
47
48
49
50
51
# File 'lib/ronin/generators/dir_generator.rb', line 46

def self.generate(path,options={},arguments=[])
  path = File.expand_path(path)

  generator = self.new([path] + arguments, options)
  generator.invoke()
end

Protected Visibility

Protected Instance Methods Inherited from Ronin::Generators::Generator

copy_file, mkdir, template, touch

Generated on Friday, September 25 2009 at 04:06:45 AM by YARD 0.2.3.5 (ruby-1.8.6).