Class: Merb::Generators::Generator

Class | Merb::Generators::Generator
In: | lib/merb-gen/generator.rb
Parent: | Templater::Generator

### Methods

go_up new source_root with_modules

### Included Modules

Merb::ColorfulMessages

### Public Class methods

new(*args)
source_root()

### Public Instance methods

go_up(num)

Returns a string of num times ’..’, useful for example in tests for namespaced generators to find the spec_helper higher up in the directory structure.

@param num<Integer> number of directories up @return <String> concatenated string

with_modules(modules, options={}, &block)

Inside a template, wraps a block of code properly in modules, keeping the indentation correct

@param modules<Array[to_s]> an array of modules to use for nesting @option indent<Integer> number of integers to indent the modules by

[Validate]