Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/bivouac/utils.rb

Overview

Bivouac Project

Instance Method Summary collapse

Instance Method Details

#add_generator(g) ⇒ Object

:nodoc:



3
4
5
6
7
8
9
10
# File 'lib/bivouac/utils.rb', line 3

def add_generator( g ) #:nodoc:
	if self.class_variable_defined?(:@@plugins_generators)
	  x = class_variable_get( :@@plugins_generators ) + g.map{|x| x.to_s}
	  class_variable_set( :@@plugins_generators, x )
	else
	  class_variable_set(:@@plugins_generators, g.map{|x| x.to_s})
	end
end